View source: R/cross_validation_functions.R
balanced.folds | R Documentation |
Create balanced folds for cross-validation.
balanced.folds(y, nfolds = min(min(table(y)), 10))
y |
the response vector |
nfolds |
number of folds |
Create balanced folds for cross-validation.
This function returns balanced folds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.