internalsGet Pro

Module 07 · Lesson 2 of 12Pro

Logistic regression: predicting probabilities

Level
Beginner
Topic
Classical ML: regression and classification
Reading time
13 min

When you finish this page you can

  1. Turn a logistic regression weight into an odds ratio and say what it does to one customer’s chance.
  2. Explain why features are scaled inside a pipeline before training, and what goes wrong without it.
  3. Rank customers with predict_proba instead of predict, and say when the 0.5 cut is the wrong tool.
  4. Decide whether to use class weights on a rare class, knowing what they do to the chances.
  1. The chain rule: derivatives through layers14 min
  2. Maximum likelihood: fitting models to data17 min
  3. Loss functions: measuring how wrong a model is13 min
  4. scikit-learn: the fit and predict pattern14 min

Why is this customer on the list?

is our example online store. Every Monday, Joseph’s growth team sends ₹100 vouchers to the 20,000 customers most likely to : to stop buying. Farah, an ML engineer, builds the model that ranks them. Her newest model reaches leavers with 51% of its vouchers, against 40% for the current one.

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