Dataset Stratification and Group Leakage Check
Check for rows and groups shared across splits and differences in class composition after splitting
Cross-split overlap counts each ID appearing in at least 2 different splits only once. Class proportions use input row counts as the denominator, including duplicate rows within a split.
Results
—IDs
—IDs
- Maximum deviation from the overall proportion
- —percentage points
- Input row count
- —rows
- Distinct row IDs
- —IDs
- Distinct group IDs
- —IDs
- Duplicate row IDs within a split
- —rows
- Time-series date order
- —
Results update automatically when the required values are entered.
Method, applicability and sources
Calculation method
The proportion of class c in split s is p(c|s)=n(c,s)/n(s). The overall proportion is p(c)=n(c)/N. Maximum deviation (percentage points)=100×max|p(c|s)−p(c)| across the splits and classes present. Pairwise row/group ID overlap counts intersections of split-specific sets; the overall count includes each ID appearing in at least 2 splits once. For time-series data, compare the latest date of each earlier split with the earliest date of the later split. An earlier-split date>later-split date is reversed order; equal dates mean the order is unknown.
Worked example (hypothetical values)
Example: If training contains 2 class A rows and 1 class B row, and test contains 1 A and 1 B, the overall A proportion is 60%, training is 66.67%, and test is 50%, giving a maximum deviation of 10 percentage points.
Applicability and limitations
One training/validation/test split for a classification task, represented using consistent anonymous-ID conventions. Excludes personal information or real IDs, generating splits, leakage through preprocessing or features, statistical significance of distribution changes, minimum time gaps, ordering within the same day, and multiple cross-validation iterations.
Method and sources
Method: split-overlap-and-proportion-v1 (2026-11-14). Data recorded: 2026-11-14.