Description Usage Arguments Details Value Examples
Creates resamples for repeated K-fold cross-validation stratified by target variable.
1 | repeated_kfold(nrep = 2L, nfolds = 5L, expr)
|
nrep |
Number of replications. |
nfolds |
Number of folds (min 2, max 20). Should match the value
of |
expr |
Quoted expression for creating resamples. |
expr
is a call of function cv_base
, cv_split_temporal
or other from the package.
data.table with nrep
*nfolds
columns. Each column is an indicator variable
with 1 corresponds to observations in validation dataset (stratified by target).
1 | repeated_kfold(expr = quote(cv_base(as.data.table(iris), "Species")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.