internalsGet Pro

Module 15 · Lesson 12 of 12Pro

Design: a retraining pipeline for demand forecasts

Level
Advanced
Topic
Monitoring and retraining
Reading time
28 min

When you finish this page you can

  1. Design a weekly retraining pipeline for 20 million forecasts that promotes a new model with nobody watching, and only after it passes gates.
  2. Turn a week’s sales into training labels when some products ran out of stock, so selling out isn’t learned as low demand.
  3. Build a backtest gate that replays past weeks with the information each forecast really had, and judge it per slice against what was served and a seasonal naive forecast.
  4. Say what fails at each step, what replenishment sees, and how the design changes at 10× and 100× the forecasts.
  1. Batch prediction pipelines16 min
  2. Model registry and versioning17 min
  3. Feedback loops and delayed labels18 min
  4. Retraining: on a schedule or on a trigger17 min
  5. Case: Zalando’s weekly demand forecasts for 5M items16 min

Video lesson · coming soon

Three weeks of fewer chargers

is the online store this course uses as its example. It serves 5 million customers a day, sells 20 million products and takes 500,000 orders a day. Every Sunday night, a model forecasts how many units of each of its top 2 million products each of its 10 warehouses will sell next week. At 06:00 on Monday, the replenishment job reads those forecasts and orders stock from sellers.

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