View source: R/create_repeated_cv_fold.R
| create_repeated_cv_fold | R Documentation |
create_repeated_cv_fold
create_repeated_cv_fold(idx, labels = NULL, pct_test, n_rep, n_fold, grid)
idx |
indecies |
labels |
class labels. default is 'NULL'. If provided then there will be a balanced representation of the classes in train and test. |
pct_test |
percentage of indecies for test |
n_rep |
number of CV repeats |
n_fold |
number of CV folds |
grid |
search grid |
a expanded list
## Not run:
create_repeated_cv_fold(idx = 1:100,
labels <- sample(c(1,2,3), size = 100, replace = TRUE),
pct_test = 0.2,
n_rep = 10,
n_fold = 5,
grid = expand.grid(mtry = 1:2, ntree = 2:5))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.