What You'll Master Here
A feature is a value about an entity AS OF a point in time. Modeling features is mostly about getting that timestamp right.
Machine learning models do not consume raw tables, they consume features: numeric or categorical signals about an entity. Modeling them well is a distinct discipline with one dominant concern — time. Get it wrong and the model looks brilliant in testing and fails in production. No ML background is assumed; feature bugs are data-modeling bugs about time, not algorithm bugs.
The four questions below are the whole chapter, in the order they have to be answered. Step through them: each one names the failure you get by skipping it, and jumps to the topic that fixes it.
A feature is a value about an entity AS OF a point in time. Modeling features is mostly about getting that timestamp right.
Most ML production failures are feature problems: leakage that inflates offline accuracy, or skew that makes serving differ from training. Both are data-modeling mistakes.
- feature
- A signal about an entity used by a model (e.g. sessions_7d for a player).
- point-in-time correctness
- Using each feature's value as it was at the label's timestamp, never later.
- data leakage
- Letting future information into training, inflating offline accuracy unrealistically.
- feature store
- A system serving consistent features to both training (offline) and serving (online).
Treating feature engineering as modelling work rather than data modelling. The four questions below never get asked, and every one of them fails silently — no exception, no failed test, just a number that was never true.
Write the feature definition down before writing the query.
Ask "as of when?" before "which columns?".
Compare the offline metric against the live one before believing either.
Feature modeling is temporal modeling for ML. The hard part is always "as of when?", and the answer must be the label's time, not now.
Features are entity values as of a point in time; point-in-time correctness and training-serving consistency prevent the most common ML failures.
