runCrossval: Compute the cross-validation emprirical and generalization...

View source: R/predomics.R

runCrossvalR Documentation

Compute the cross-validation emprirical and generalization scores

Description

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.


predomics/predomicspkg documentation built on Dec. 11, 2024, 11:06 a.m.