check_groups | R Documentation |
Check grouping vector
check_groups(dataset, groups, kfold)
dataset |
Data frame with an outcome variable and other columns as features. |
groups |
Vector of groups to keep together when splitting the data into
train and test sets. If the number of groups in the training set is larger
than |
kfold |
Fold number for k-fold cross-validation (default: |
Zena Lapp, zenalapp@umich.edu
## Not run:
check_groups(mikropml::otu_mini_bin,
sample(LETTERS, nrow(mikropml::otu_mini_bin), replace = TRUE),
kfold = 2
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.