create_caret_folds | R Documentation |
Transform list of sets of folds to list which may be passed to caret train function.
create_caret_folds(folds_list)
folds_list |
list of sets of folds, each element is a vector of folds numbers. |
list of training set object for each fold in format which suit the requirements of caret train function.
folds_list <- lapply(1:10, function(i) sample.int(5, 100, TRUE))
caret_folds_list <- create_caret_folds(folds_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.