Check grouping vector
check_groups(dataset, groups, kfold)
dataset | Dataframe 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, and for cross-validation; length matches the number of rows in the dataset (default: no groups). |
kfold | Fold number for k-fold cross-validation (default: |