runCrossval | R Documentation |
Compute the cross-validation emprirical and generalization scores.
runCrossval(X, y, clf, lfolds = NULL, nfolds = 10, return.all = FALSE)
X: |
the data matrix with variables in the rows and observations in the columns |
y: |
the response vector |
clf: |
the classifier parameter object |
nfolds: |
the number of folds for the cross-validation |
return.all: |
return all results from the crossvalidation for feature stability testing |
a list containing empirical, generalisation scores for each fold as well as a matrix with the mean values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.