Week 5 — Lesson 3: Logistic regression: a probability, not a yes/no

3 min

At NorthPeak the target fault_next_7d is a category: fault or no fault. Logistic regression is the classification cousin of linear regression. It computes the same weighted sum, then squeezes it through the sigmoid so that the output is a probability between 0 and 1. On the test quarter it gives normal days a mean probability of 0.019 and days before a fault 0.637. This lesson covers the sigmoid, predict_proba, and the hidden 0.5 threshold that predict applies for you.

Preview — the rest of the lesson is for enrolled readers.

Already enrolled with a code?

Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.

Sign inNo account yet? Create one
This lesson is part of the “Week 5 — Regression, classification and evaluation” module

The first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.

Are you a student on this course?

The code is tied to your account: sign in or create an account and it will be applied automatically when you come back.

No account yet? Create one