Lesson 4 of 6 7 min · 110 words
F1-score
The harmonic mean of precision and recall.
The F1 score combines precision and recall into one number using their harmonic mean:
The harmonic mean is dominated by the smaller value, so F1 is only high when *both* are high. It ignores true negatives, which makes it suitable for imbalanced problems where TN is huge and uninformative.
The general weights recall times as much as precision: . favours recall; favours precision.
Formula to remember
F1-score
Harmonic mean of precision P and recall R.
Quick check · +5 XP