# Precision and recall

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
$\text{precision} = \frac{tp}{tp + fp}$
$\text{recall} = \frac{tp}{tp + fn},$
where $tp$ is the number of true positives, $fp$ the number of false positives, and $fn$ the number of false negatives.