Validate a split intended to generalize to unseen subjects
Source:R/feature-input.R
validateSubjectSplit.RdChecks explicit identifiers only; this does not audit upstream preprocessing fit scopes, verify biological identity, or prevent leakage in external model software unless called before fitting. No backend is needed.
Arguments
- train, valid
Case identity data frames as in
withCaseData().
Value
Invisibly TRUE, or an error for shared cases or subjects, invalid
labels, or inconsistent participant aliases.
Examples
train <- data.frame(case_id = c("c1", "c2"), subject_id = c("s1", "s2"))
valid <- data.frame(case_id = c("c3", "c4"), subject_id = c("s3", "s4"))
validateSubjectSplit(train, valid)