Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Precision and recall

What is precision and recall?

Precision is the share of a model's positive answers that were right. Recall is the share of the real positives that it found.

Where it is taught

Measuring a classifier. Accuracy can look excellent while a model is useless. Precision and recall say what kind of mistakes it makes, and a threshold lets you trade one for the other.

What the lesson leaves you with

  • With a rare class, accuracy alone can be meaningless.
  • Precision is how many of the model's yeses were right. Recall is how many of the real yeses it found.
  • Moving the threshold trades one for the other, and the right setting depends on what each mistake costs.
Open the lesson

Questions

What is precision and recall?
Precision is the share of a model's positive answers that were right. Recall is the share of the real positives that it found.
Where is precision and recall used in AI?
Accuracy can look excellent while a model is useless. Precision and recall say what kind of mistakes it makes, and a threshold lets you trade one for the other.
What is the key idea to remember about precision and recall?
With a rare class, accuracy alone can be meaningless.
Where can I learn precision and recall step by step?
In the lesson “Measuring a classifier” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

Related terms

  • Clustering
  • Discount
  • Matrix factorisation
  • Q-value
  • Reinforcement learning
  • Self-supervised learning