| validateMlComb | R Documentation |
mlCombInternal helper used by mlComb to validate machine-learning-specific
arguments before fitting the caret model. It checks the selected
method, resampling method, resampling control parameters, preprocessing
options, bagging parameter, and oob/adaptive resampling restrictions.
validateMlComb(
niters = 10,
nfolds = 5,
nrepeats = 3,
preProcess = NULL,
B = 25,
p = 0.75,
resample = "none",
method = NULL
)
niters |
A positive integer indicating the number of bootstrap
resampling iterations. Used for |
nfolds |
A positive integer. For |
nrepeats |
A positive integer indicating the number of repeats for
|
preProcess |
A character vector specifying preprocessing methods passed
to |
B |
A positive integer indicating the number of bootstrap samples for
bagging classifiers such as |
p |
A numeric value between 0 and 1 specifying the training proportion
used for |
resample |
A character string specifying the resampling method. Allowed
values are |
method |
A character string specifying the |
The "oob" resampling method is restricted to suitable random forest,
bagged tree, bagged earth, bagged flexible discriminant analysis, and
conditional tree forest methods.
For "adaptive_cv" and "adaptive_LGOCV", nfolds must be
greater than 5. For "repeatedcv", nrepeats must be at least 2.
Invisibly returns TRUE if all checks pass. Otherwise, an error
is thrown.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.