Description Usage Arguments Value Author(s) Examples
Calculate cross-validation error
1 |
fun |
The model function to call on the data |
k |
The number of folds |
data |
The data |
cost |
Cost function for the error:'cost.mse','cost.01' |
response |
Character vector indicating which column is the response |
... |
Extra arguments for model function |
A single cross-validated error
Xiaoyao Yang
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.