Skip to contents

Compute the cross-validation emprirical and generalization scores.

Usage

runCrossval(X, y, clf, lfolds = NULL, nfolds = 10, return.all = FALSE)

Arguments

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

Value

a list containing empirical, generalisation scores for each fold as well as a matrix with the mean values.