Description Usage Arguments Details Value
Calculates v-fold or leave-one-out cross-validation without selecting a new set of features with each fold. See Details.
1 |
array |
Specifies the |
top |
A numeric scalar or character vector. A numeric scalar indicates
the number of top features that should undergo feature selection. A character vector
indicates specifically which features by name should undergo feature selection.
Set |
how |
A character string. Specifies the |
fold |
A numeric scalar. Specifies the number of folds for cross-validation.
Set |
... |
Arguments passed to the |
plCV performs v-fold or leave-one-out cross-validation. The argument
fold specifies the number of v-folds to use during cross-validation.
Set fold = 0 to perform leave-one-out cross-validation. Cross-validation
accuracy is defined as the average accuracy from calcStats.
This type of cross-validation is most appropriate if the data
has not undergone any prior feature selection. However, it can also serve
as an unbiased guide to parameter selection when embedded in
plGrid. If using cross-validation in lieu of an independent test
set in the setting of one or more feature selection methods, consider using
a more "sophisticated" form of cross-validation as implemented in
plMonteCarlo or plNested.
When calculating model performance with calcStats, this
function forces aucSkip = TRUE and plotSkip = TRUE.
A numeric scalar. The cross-validation accuracy.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.