View source: R/cross-validation.R
make_folds | R Documentation |
Generate folds for CV out of one hot encoded matrix
make_folds(mat, val_train = 0, val_test = 1)
mat |
matrix with columns corresponding to folds and entries corresponding to a one hot encoding |
val_train |
the value corresponding to train, per default 0 |
val_test |
the value corresponding to test, per default 1 |
val_train
and val_test
can both be a set of value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.