F1 Score (F Measure)
Last updated
Last updated
Consider a Binary Classification Model that Predicts Whether or Not a Person Got Diabetic.
How many cases did we correctly label out of all the cases?
How many of those who we labeled as diabetic are actually diabetic?
Of all the people who are diabetic, how many of those did we correctly predict?
Of all the people who are healthy, how many of those did we correctly predict?
It is the harmonic mean (average) of the precision and recall.
Using F1 score as a metric, we are sure that if the F1 score is high, both precision and recall of the classifier indicate good results. This score takes both false positives and false negatives into account. Intuitively it is not as easy to understand as accuracy, but F1 is usually more useful than accuracy, especially if you have an uneven class distribution.