Skip to content
BENIBIX Learn

F1 Score

AI📏 Evaluation & BenchmarksClassification Metrics

Also known as F1, F-Score, F-Measure

One score that blends precision and recall. It stays low if either one is low.

Think of it like

It is like a grade for a team of two. If one does badly, the team grade drops a lot.

Example

Lucy compares two fraud models. Model A has an F1 of 0.62 and model B 0.71, so she picks B, then checks its precision and recall one by one.

Why it matters

It gives one number to compare models with. And it cannot be gamed by pushing just one side up.

Definition

The F1 score is one number that blends precision and recall. It is their harmonic mean, a kind of average that stays low if either one is low. It runs from 0 to 1, where 1 means perfect precision and perfect recall. A model with 0.9 precision and 0.1 recall gets an F1 of only 0.18. It is often used when the cases are lopsided and accuracy would fool you.
High precision with low recall still gives a low F1. Both have to be good.

Common mistake

Using F1 when misses and false alarms cost very different amounts. Then look at precision and recall on their own.

Key takeaways

  1. 1
    Blends two scores. Precision and recall.
  2. 2
    Low if one is low. No hiding.
  3. 3
    0 to 1. 1 is perfect.