Chapter 15 · Activity 15.1

Explore a Classification Threshold

Change the cutoff to see how precision, recall, and inspection capacity interact.

↓ Download Python notebook

Model scores

Actual positiveActual negative
Cutoff 0.500.000.250.500.751.00

Scores at or above the cutoff count as predicted positive.

40%Precision
80%Recall
20Predicted positive
Confusion matrix
Actual classPredicted negativePredicted positive
Negative78 (TN)12 (FP)
Positive2 (FN)8 (TP)
View exact score counts
ScoreActual positiveActual negative
0.9032
0.7823
0.6423
0.5014
0.3617
0.22111
0.12015
0.06020
0.02025