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.

  1. The Role Column

    explicit row membership instead of fragile positional slices

  2. Train Mean Uses Train Rows

    mask both the numerator and the denominator to training rows

  3. Freeze the Baseline

    carry one training parameter forward to every row unchanged

  4. Score Held-Out Rows

    switch from tr_mask during fitting to te_mask during scoring

  5. Held-Out MAE

    sum held-out absolute errors and divide by the held-out count

  6. What the Split Does and Does Not Say

    what one honest split proves—and three things it never guarantees