Passage: In a marketing dataset, each customer has many events such as impressions and purchases. The team needs a model that predicts whether a customer will purchase within the next 14 days. They build training examples by selecting an “observation date” for each customer, then joining all events up to that date to compute aggregate features. Some events arrive hours late due to tracking pipelines, but their timestamps reflect the true occurrence time. The team argues that using the raw ingestion time for joins could contaminate labels. They instead join by event timestamps and also enforce that no feature depends on events after the observation date. For evaluation, they use a different set of observation dates so the future window never overlaps with feature computation. Inference uses the latest observation date per customer with the same pipeline logic. Based on this text, which leakage risk is most directly avoided?

Answer

Using ingestion time in joins that lets late-arriving post-observation events enter features

Explanation

The passage highlights contamination from joining on ingestion time, which can mistakenly include events that occurred after the observation date but arrived late.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list