liveBook · Manning

Fixed shift

As explained in Machine Learning System Design

A split-update procedure that replaces the validation window with a fixed-length set of the most recent data.

Fixed shift updates validation for a changing dataset by replacing the validation window with a fixed-length set of the most recent data. It suits situations where time and novelty make older outcomes poor indicators of current performance. section 7.4

A rolling two-week validation window

Take the last two weeks, beginning with the last completed day, as validation data. Update that window daily and retrain the model used for evaluation each time. section 7.4

Choose fixed shift when:

  • Recent patterns matter more than historical behavior because the target distribution changes substantially over time. section 7.4
  • Evaluation must remain representative of newly arriving patterns while tracking how model updates affect performance. section 7.4
Figure 7.7 Common options for updating train/validation sets. The light data blocks are used for training, while the dark ones are used for validation.
figure

Compare fixed shift with fixed-ratio and fixed-set strategies for updating training and validation data. section 7.4

How Machine Learning System Design covers it

How deep it goes
Explains the rationale and daily rolling-window procedure, but stops short of implementation details.
Examples
Uses a two-week validation window starting after the last completed day and refreshed daily during retraining.
What it assumes
Assumes awareness of training and validation splits while explaining why recency matters for changing datasets.
What you can do after
Apply it by rolling validation forward daily and retraining the evaluated model against recent data.
How it connects
Connects validation sets with training data, model retraining, data distribution, and time-dependent evaluation.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.