Skip to contents

A function to generate a CrossValParams object

Usage

generateCrossValParams(nRepeats, nFolds, nCores, selectionOptimisation)

Arguments

nRepeats

A numeric specifying the the number of repeats or permutations to use for cross-validation.

nFolds

A numeric specifying the number of folds to use for cross-validation.

nCores

A numeric specifying the number of cores used if the user wants to use parallelisation.

selectionOptimisation

A character of "Resubstitution", "Nested CV" or "none" specifying the approach used to optimise nFeatures.

Value

CrossValParams object

Examples

CVparams <- generateCrossValParams(nRepeats = 20, nFolds = 5, nCores = 8, selectionOptimisation = "none")
#> Error in generateCrossValParams(nRepeats = 20, nFolds = 5, nCores = 8,     selectionOptimisation = "none"): could not find function "generateCrossValParams"