Learn Before
Case Study

Diagnose a cat classifier's Precision from dev set results.

Case context: A team tests their cat classifier on the dev set. The classifier labels 100 images as cats. When the team checks these 100 images against the true labels, they find that 95 of them are actually cats and 5 are not cats (they were mislabeled as cats).

Question: Based on the definition of Precision, what is the Precision of this classifier on this dev set, and what does this value indicate about the classifier's labeled-cat predictions?

Sample answer: Precision is the fraction of images labeled as cats that really are cats, so Precision = 95/100 = 0.95, or 95%. This means that when the classifier labels an image as a cat, it is correct 95% of the time, indicating that most of the classifier's positive (cat) predictions are trustworthy, though it says nothing about cat images the classifier may have missed.

Key points:

  • Precision = (labeled-cat images that really are cats) / (total images labeled as cats)
  • Precision = 95/100 = 0.95 or 95%
  • High Precision means labeled-cat predictions are mostly correct
  • Precision alone does not indicate how many actual cats were missed

Rubric: Full credit requires correctly computing Precision as 95/100 and correctly interpreting that it reflects the reliability of the classifier's cat-labeled predictions, not its coverage of all actual cats.

0

1

Updated 2026-07-10

Contributors are:

Who are from:

Tags

Machine Learning

Deep Learning

Supervised Learning

Dive into Deep Learning @ D2L

Data Science

Machine Learning Strategy

Machine Learning Yearning @ DeepLearning.AI