P79Feature EngineeringAdvancedDesign18 min

Design a Feature Availability Contract for Rolling Metrics

Define a time contract that prevents rolling behavioral features from using future information.

#design#leakage#rolling metrics

Scenario

At 09:00 each Monday, a retention model scores customers using a 30-day purchase-count feature.

Problem statement

Design the feature-availability rule, including timestamp, observation window, data cutoff, permitted history, and forbidden information.

Your Task

  1. State the prediction timestamp.
  2. Define the inclusive observation window and cutoff.
  3. Explain what information is unavailable at scoring time.

Related Concepts

Temporal leakagePoint-in-time featuresValidation

Ready to count this problem?

Mark it complete when you have reasoned through the solution in your own words.