CrossValParams | R Documentation |
Collects and checks necessary parameters required for cross-validation by
runTests
.
CrossValParams(
samplesSplits = c("Permute k-Fold", "Permute Percentage Split", "Leave-k-Out",
"k-Fold"),
permutations = 100,
percentTest = 25,
folds = 5,
leave = 2,
tuneMode = c("Resubstitution", "Nested CV", "none"),
adaptiveResamplingDelta = NULL,
parallelParams = bpparam()
)
samplesSplits |
Default: "Permute k-Fold". A character value specifying what kind of sample splitting to do. |
permutations |
Default: 100. Number of times to permute the
data set before it is split into training and test sets. Only relevant if
|
percentTest |
The percentage of the data
set to assign to the test set, with the remainder of the samples belonging
to the training set. Only relevant if |
folds |
The number of approximately equal-sized folds to partition
the samples into. Only relevant if |
leave |
The number of samples to generate all possible
combination of and use as the test set. Only relevant if |
tuneMode |
Default: Resubstitution. The scheme to use for selecting any tuning parameters. |
adaptiveResamplingDelta |
Default: |
parallelParams |
An instance of |
Dario Strbenac
CrossValParams() # Default is 100 permutations and 5 folds of each.
snow <- SnowParam(workers = 2, RNGseed = 999)
CrossValParams("Leave-k-Out", leave = 2, parallelParams = snow)
# Fully reproducible Leave-2-out cross-validation on 4 cores,
# even if feature selection or classifier use random sampling.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.