Course map
Stage 1: Foundations
Stage 2: Machine Learning
Stage 3: Deep Learning
Stage 4: LLMs & Generative AI
Stage 5: Production & Specialization

Part 06 / Topic 2 of 7

Precision, recall and F1

  • Precision asks: of everything the model flagged, how much was right? Low precision means false alarms.
  • Recall asks: of everything that was really there, how much did the model find? Low recall means misses.
  • F1 is their harmonic mean, for when you must report a single number.

Which one matters depends on the price of each mistake. In a spam filter, false positives hurt most — real mail gets lost — so you optimise precision. In cancer screening, misses hurt most, so you optimise recall. Churn usually leans toward recall, because a retention call is cheap and a lost customer is not.

Done here? The practice set for Part 6 — 4 exercises with solutions — is on the part page.

Search the guide