Chapter 15 · Activity 15.1
↓ Download Python notebookExplore a Classification Threshold
Change the cutoff to see how precision, recall, and inspection capacity interact.
Model scores
Actual positiveActual negative
Scores at or above the cutoff count as predicted positive.
40%Precision
80%Recall
20Predicted positive
| Actual class | Predicted negative | Predicted positive |
|---|---|---|
| Negative | 78 (TN) | 12 (FP) |
| Positive | 2 (FN) | 8 (TP) |
View exact score counts
| Score | Actual positive | Actual negative |
|---|---|---|
| 0.90 | 3 | 2 |
| 0.78 | 2 | 3 |
| 0.64 | 2 | 3 |
| 0.50 | 1 | 4 |
| 0.36 | 1 | 7 |
| 0.22 | 1 | 11 |
| 0.12 | 0 | 15 |
| 0.06 | 0 | 20 |
| 0.02 | 0 | 25 |