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.
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.