.folds | R Documentation |
Assigns samples to cross-validation folds, balancing the folds in the case of a binary or survival response.
.folds(y, nfolds, foldid = NULL)
y |
response:
vector of length |
nfolds |
number of folds:
positive integer
( |
foldid |
fold identifiers:
vector of length |
Returns the fold identifiers.
NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.