QuestionQ128

VerifiedAdvanced Feature Store Concepts

A Machine Learning Engineer is developing a model to predict sensor failures from historical sensor data. They build a feature table by aggregating sensor readings into 5-minute intervals, with sensor_id as the primary key and by always selecting the latest available values in each interval. During model training, they perform feature lookups without defining any temporal constraints.

A colleague warns that this method could introduce data leakage. Is the colleague correct, and how should the engineer resolve the issue?

Explanation

Time-aggregated sensor features can change over time, so training data must use only values available at each prediction or label timestamp. Point-in-time feature lookups using timestamp_lookup_key perform an as-of join, retrieving the latest matching feature value at or before that timestamp and preventing future sensor readings from leaking into training data.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!