keep_groups_in_cv_partitions {mikropml} | R Documentation |
Whether groups can be kept together in partitions during cross-validation
Description
Whether groups can be kept together in partitions during cross-validation
Usage
keep_groups_in_cv_partitions(groups, group_partitions, kfold)
Arguments
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 |
group_partitions |
Specify how to assign |
kfold |
Fold number for k-fold cross-validation (default: |
Value
TRUE
if possible, FALSE
otherwise
Author(s)
Kelly Sovacool, sovacool@umich.edu