internalsGet Pro

Module 07 · Lesson 12 of 12Pro

Design: a churn prediction model for an online store

Level
Intermediate
Topic
Classical ML: regression and classification
Reading time
28 min

When you finish this page you can

  1. Define a churn label from a snapshot date and a label window, and build every feature as of that date.
  2. Split dated rows by snapshot and compare a rule, logistic regression and gradient-boosted trees on the same later snapshot.
  3. Turn predicted chances into a voucher list from money: send when the chance passes the voucher’s cost divided by what a reached leaver is worth.
  4. List what ships on Monday besides the model, and how to test it against the current one.
  1. Train, validation and test sets13 min
  2. Cross-validation: getting more from little data17 min
  3. Logistic regression: predicting probabilities13 min
  4. Gradient boosting: XGBoost, LightGBM and CatBoost18 min

Monday’s list, three ways

is the online store this course uses as its example. Every Monday, its growth lead Joseph sends a ₹100 voucher to the 20,000 customers most likely to stop ordering. Kartly has 200,000 customers in Farah’s notebook sample, so one in ten gets a voucher. The prediction behind the list is one number per customer: the chance that they place no order in the next 60 days.

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