createFolds | R Documentation |
This function generate data folds for cross validation given stratified samples
createFolds(strat_id, k)
strat_id |
A vector of the stratified sample id. E.g. In total of 5 samples, first three from group 1, last two from group 2 -> c(1, 1, 1, 2, 2) |
k |
Number of folds to create. |
A list of sample indices in k folds.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.