All lessons in Machine Learning Engineering: Reliable Predictive Models
Point-in-Time Features and Delayed Labels
Build training rows using only available information and audit evaluation cutoffs.
35 minutes · Members lesson · preview
What you will learn
- Classify a candidate feature as known at dispatch, reconstructable point-in-time, or leaked from the future.
- Recompute a rolling late-rate aggregate using only labels that had matured at the prediction moment and compare it with the hindsight version.
- Set training and validation cutoffs that respect label maturation and count the rows each cutoff admits.
The late-delivery model answers one question at one moment: when a parcel leaves the depot, how likely is it to miss its promised window? Everything the model consumes at that moment must be something the dispatch system actually held, and everything the model learned from must have been knowable when the training snapshot was taken. Those two rules sound obvious, yet they are violated constantly, because the table an engineer trains on is usually assembled weeks later from a cleaned warehouse in which corrections, delivery scans and final outcomes have all been written back onto the same row. A model fitted on that table can look excellent on a random split and collapse on its first live week. This lesson gives you a short written contract for every feature, a recipe for recomputing aggregates as they would have looked at dispatch, and a way to place cutoffs so that evaluation imitates deployment.