internalsGet Pro

Module 18 · Lesson 3 of 15Pro

Demand forecasting at scale

Level
Advanced
Topic
Applied ML problems
Reading time
18 min

When you finish this page you can

  1. Choose between one global model for millions of series and one model per series, and say what would change the choice.
  2. Forecast slow sellers and new products with a global model, using a count loss and features that exist on day one.
  3. Turn the cost of running out and the cost of spare stock into the quantile a forecast should give, and train it with quantile loss.
  4. Pick metrics that survive zeros and mixed scales, and keep forecasts coherent across product, category and warehouse.
  1. Regression metrics: MAE, RMSE and beyond13 min
  2. Calibration: probabilities you can trust17 min
  3. Design: a retraining pipeline for demand forecasts28 min
  4. Time series forecasting: predicting what comes next17 min

Video lesson · coming soon

Twenty million series, most of them empty

is the online store this course uses as its example. 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. Replenishment orders stock from those forecasts on Monday morning. That is 20 million product-warehouse pairs, each its own .

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