View source: R/make_split_plan.R
| check_split_overlap | R Documentation |
Verifies that a LeakSplits object satisfies the
expected no-overlap constraints for one or more grouping columns. For each
fold, the function checks that no group-level value appearing in the test
set is also present in the training set.
check_split_overlap(splits, coldata = NULL, cols = NULL, stop_on_fail = TRUE)
splits |
A |
coldata |
A data.frame of sample metadata. When |
cols |
Character vector of column names to check for overlap. When
|
stop_on_fail |
Logical; if |
A data.frame with one row per (fold × column) combination and
columns fold, repeat_id, col, n_overlap
(number of overlapping group values), and pass (logical).
Invisible. Raises an error if any fold fails and stop_on_fail = TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.