LESSON 4.C7 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
ROC vs PR under class imbalance
Watch one classifier at two class balances: the ROC curve holds, the PR curve falls.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 4.C7 · EVALUATION BAYT 0.5 · TP 40 · FN 10 · FP 12 · TN 38
01
Stage 1 of 6 · Scores, threshold
One classifier scores 100 samples. The threshold t = 0.5 sorts them into a confusion matrix.
Explain it simply
Each mark is one test sample. Here 50 dots are class 1 and 50 squares are class 0. Every mark at or right of the threshold line is called class 1. The red marks are the wrong calls.
50 dots and 50 squares on a score axis from 0 to 1. The threshold at 0.5 gives 40 true positives, 10 false negatives, 12 false positives and 38 true negatives.
samples: dot class 1, square class 0wrong callsthreshold trates, curves, areasguessing, random
Toy: the 100 test samples of 4.48, one seeded classifier
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The four cells count every sample once.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 2 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.