epochs

Learn · Module 02 · Classical machine learning · Lesson 3 of 8

Classifying with logistic regression

To answer yes or no, compute a score, then squash it into a probability between 0 and 1.

4 minute read

In short
  • Logistic regression scores with w·x + b, then sigmoid turns the score into a probability.
  • It learns by minimising log loss, which punishes confident mistakes hardest.
  • The decision threshold is a separate choice, set by the cost of each kind of mistake.

This lesson is part of Pro

The first two lessons of every module are free. Pro opens every lesson and every project.

See Pro plansFrom ₹119 a month. No auto-renewal.