Theory of Intelligence
MACHINE LEARNING•Supervised Learning•Evaluating Classifiers•2.2 Precision, Recall & F1

Introduction

Two complementary questions about a classifier — how trustworthy are its alarms, and how many cases does it catch — and the F1 score that combines them.

Introduction

The confusion matrix holds four numbers. That's informative but hard to compare between models. Precision and recall squeeze it into two numbers, each answering a simple question about the positive class:

  • Precision: When the model raises an alarm, how often is it right?
  • Recall: Of all the real cases, how many does the model catch?

Think of a fishing net:

  • Recall is how many of the fish in the lake you caught.
  • Precision is how much of what's in your net is actually fish (rather than boots and plastic bags).

A huge net catches nearly every fish (high recall) but also lots of junk (low precision). A tiny, careful net brings up almost only fish (high precision) but misses most of them (low recall).

We'll keep using the spam filter from topic 2.1:

Predicted: hamPredicted: spam
Actual: hamTN = 830FP = 20
Actual: spamFN = 30TP = 120

Discuss theoretical concepts, mathematical formulas, and architectural foundations.

Supports inline code with `backticks`
No comments yet. Be the first to start the discussion!