Classification & Logistic Regression

Decision boundaries, cross-entropy, thresholds, and the metrics that matter when classes are imbalanced.

Module 03.2 · Beginner
Free

10h · 8 lessons · 1 challenge

Before this: Probability Foundations, Regression & the Supervised Setup

About this module

Accuracy is the wrong metric and you will be asked why. This module covers logistic regression as the canonical classifier, then spends its second half on evaluation: precision, recall, ROC, PR curves, calibration and threshold selection under a real cost asymmetry.

Class imbalance gets its own treatment, because almost every interesting production problem has it.

After this module you can

8 lessons

Lesson 1
Decision boundaries and the logistic link
Kind
Concept
Length
50 min
Lesson 2
Cross-entropy from the likelihood
Kind
Concept
Length
45 min
Lesson 3
Precision, recall, F1 and the confusion matrix
Kind
Concept
Length
50 min
Lesson 4
ROC, PR curves and which to trust when
Kind
Concept
Length
50 min
Lesson 5
Threshold Tuner: set the cutoff under real costs
Kind
Interactive
Length
35 min
Lesson 6
Calibration: when probabilities mean something
Kind
Concept
Length
45 min
Lesson 7
Class imbalance: resampling, weighting, and what fails
Kind
Lab
Length
75 min
Lesson 8
Checkpoint: pick the metric, justify it
Kind
Checkpoint
Length
25 min

The challenge: Threshold Tuner

A fraud model, a false-positive cost and a false-negative cost. Move the threshold; the game bills you for every mistake.

Worth 400 XP.

Related modules

All modules
Unsupervised Learning
8h · 7 lessons
Recommender Systems
8h · 7 lessons