👉 Note: Reading: Hands-On ML - Chap 3: Classification (section “Confusion Matrices”)

Confusion matrix

actual (yes) actual (no)
predict (yes) TP FP
predict (no) FN TN

This guy is pregnant?

This guy is pregnant?

How to remember?

Type I / Type II errors

Why CM is important?

Give a general view about our model, "is it really good?" thanks to precision and recall!

Precision & Recall

actual (yes) actual (no)
predict (yes) TP FP Precision
predict (no) FN TN
Recall

Recognizing number 5. Figure taken from this book.

Recognizing number 5. Figure taken from this book.

When to use?