Train-Test Split, Exactly
Explicit role columns, train-only baselines, frozen predictions, held-out residuals, held-out MAE, and what a single split can and cannot say.
Splitting, Freezing, and Scoring
Separate training and held-out rows with an explicit role mask, freeze training statistics, and compute honest held-out MAE.
- The Role Column
explicit row membership instead of fragile positional slices
- Train Mean Uses Train Rows
mask both the numerator and the denominator to training rows
- Freeze the Baseline
carry one training parameter forward to every row unchanged
- Score Held-Out Rows
switch from tr_mask during fitting to te_mask during scoring
- Held-Out MAE
sum held-out absolute errors and divide by the held-out count
- What the Split Does and Does Not Say
what one honest split proves—and three things it never guarantees