Description Usage Arguments Value
Get balanced folds where each fold has close to overall class ratio. This only works for non-numeric inputs.
1 | balanced.folds(y, nfolds = 10)
|
y |
Vector of classes; should be a factor, logical, or character |
nfolds |
Number of folds. -1 means leave-one-out |
Numeric vector of fold indices, one for each element of y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.