All courses › Machine Learning and Data Analysis › Precision and recall
Precision and recall
Precision answers how often the model is right when it says yes. Recall answers how many of the real cases it found. F1 is a compromise between them. Which matters most depends on what costs more: false alarms or missed cases.
precision
recall
F1 score
Symbols
| precision | ||
| recall | ||
| harmonic mean of P and R |
Example
TP = 40, FP = 10, FN = 20:
, and .
In cancer screening recall matters most, in a spam filter precision matters most.
Practise classification and evaluation for free →
← The confusion matrix · Sigmoid and threshold →
Part of Machine Learning and Data Analysis: Classification and evaluation.