Lesson 9 of 9 6 min · 104 words
A first look at the F1 score
The classification metric you will meet properly in Model Evaluation.
Regression metrics measure distance; classification needs different ones. The F1 score is the standard metric when classes are imbalanced, and you will study it properly in Model Evaluation.
It combines precision (of the items you flagged, how many were right?) and recall (of the true positives, how many did you find?) with a harmonic mean: .
The harmonic mean is pulled towards the smaller value, so a model can't get a high F1 by being great at one and terrible at the other.
Formula to remember
Least squares loss
Sum of squared residuals.
Quick check · +5 XP