This function computes the error of different model fits via leave-one-out cross-validation. However, typically this function will be called via computeErrorRate and not directly.
1 | computeErrorLOOCV(data, model, cvGroup, imputationParameters)
|
data |
A data.table containing the data. |
model |
The model fit to x, should be of class ensembleModel. |
cvGroup |
A vector of the same length as nrow(data). Entries of the vector should be integers from 1 to the number of cross-validation groups (typically 10). This should be randomly assigned, and is usually created by ensembleImpute. |
imputationParameters |
A list of the parameters for the imputation algorithms. See defaultImputationParameters() for a starting point. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.