SpinTheMic
Pro

Interview practice question

Customer averages included future data

Machine Learning · Feature Engineering · Experienced

Your training pipeline computes each customer's "average order value" over their entire history, including orders after the prediction date. Production accuracy is lower than expected. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Features computed with future data leak information.
  • Recompute aggregates as of each prediction date.
  • Use windowed, point-in-time aggregations.
  • Rebuild training set and re-evaluate.
  • Add automated leakage checks (feature timestamps vs label time).
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics