A churn model trains on events with timestamps, and features change daily. How do you avoid leaking future feature values into training?
- Exam domain
- Model Development44% of the exam
- Difficulty
- Hard
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Model Development (44% of the exam)
Objective in the exam guide: Ensure point-in-time correctness in feature lookups to prevent data leakage during model training and inference.
Point-in-time correctness is named.
Why B is the answer
A time series feature table with a timestamp lookup key
Point-in-time lookups join each label row with feature values as of its timestamp, so training never sees values from the future.
Remember: Join features as of the label time.
How it works
Time-aware joins prevent label leakage.
In detail
- Time series feature tables.
- timestamp_lookup_key in FeatureLookup.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Drop the timestamp columnWrong
Dropping time removes the protection.
B. A time series feature table with a timestamp lookup keyRight
Join features as of the label time.
C. Join on customer_id only and take the latest feature valuesWrongMost tempting
Latest values leak the future.
Why it tempts: Latest values look like the freshest data.
D. Shuffle the rows before trainingWrong
Shuffling does not stop leakage.
Use case
An illustrative scenario, not a real incident.
Illustrative: a label on March 3 gets the customer's features as of March 3, not today.
See it in different ways
sequenceDiagram participant P0 as Label row at t participant P1 as Feature table participant P2 as Training set P0->>P1: customer_id plus timestamp t P1->>P2: values as of t
How to read this chart
- 1. Label row at t sends "customer_id plus timestamp t" to Feature table.
- 2. Feature table sends "values as of t" to Training set.
flowchart TD
Q{"Do features change over time?"}
Q -->|"Yes"| A0["Point-in-time lookup"]
Q -->|"No"| A1["Key-only lookup"]How to read this chart
- At "Do features change over time?": if "Yes", go to "Point-in-time lookup"; if "No", go to "Key-only lookup".