internalsGet Pro

Module 11 · Lesson 7 of 13Pro

Time-based features without looking ahead

Level
Intermediate
Topic
Data preparation and feature engineering
Reading time
16 min

When you finish this page you can

  1. Explain why a split by date does not catch a feature that was read from today’s table.
  2. Read a changing value as it was on each snapshot date with an as-of join on a history table.
  3. Filter late-arriving records by when they were recorded, not only by when they happened.
  4. Set feature windows, time zones and boundaries so training rows and Monday’s rows are built the same way.
  1. Data, features and labels14 min
  2. Train, validation and test sets13 min
  3. Design: a churn prediction model for an online store28 min

A loyalty tier that knew the future

is the online store this course uses as its example. Its ML team works on a notebook sample of about 1 million orders from 200,000 customers. Every Monday, a model scores every customer, and Joseph’s growth team sends a voucher to the 20,000 most likely to stop buying.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan