Learn R Programming

ParallelDSM (version 0.3.7)

CVfunction: For the gap between the predicted value and expected value of the model, the model validates the function

Description

For the gap between the predicted value and expected value of the model, the model validates the function

Usage

CVfunction(pred, actual)

Value

Vector-value after model accuracy verification

Arguments

pred

: Value predicted by the model

actual

: The real value

Examples

Run this code
test.pred <- c(2,4,5,7,2,4)
test.obs <- c(1,2,3,4,5,6)
myres <- CVfunction(test.pred,test.obs)
print(myres)


Run the code above in your browser using DataLab