Checking When a Feature Became Available

Prediction features should be available at the promised scoring time. Historical tables can hide that distinction when facts were added later.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a delivery example
  2. Verify the source timeline
  3. Compare event time with arrival into the decision system
  4. Rebuild representative rows as they appeared then

Trace a delivery example

A final delivery note can exist beside earlier order data in a completed record. It cannot be used when estimating the delivery time at order creation. Feature and target roles set that boundary.

Verify the source timeline

Record observation time and availability time where they differ. Effective and recorded time give a storage model for the two facts.[1][2]

Compare event time with arrival into the decision system

A field stating final delivery time may be present in a historical warehouse but was unavailable at dispatch. Another field may have been measured before dispatch and recorded only later. Check what the model could really obtain at the prediction timestamp. See time-ordered evaluation.

Feature measured at 10:03
Recorded and exposed at 10:09
Decision at 10:05 → feature unavailable under this interface

Rebuild representative rows as they appeared then

A simulated historical read should apply the known data delay and revision rules. Test late-arriving fields and a value corrected after prediction.

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩
  2. scikit-learn Developers, Metrics and Scoring: Quantifying the Quality of Predictions ↩