make_folds | R Documentation |
Utility function to create folds of data, used in cross-validation proceidures.
The implementation is originally from the gbex
R
package
make_folds(y, num_folds, stratified = FALSE)
y |
Numerical vector of observations |
num_folds |
Number of folds to create. |
stratified |
Logical value. If |
Vector of indices of the assigned folds for each observation.
make_folds(rnorm(30), 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.