Machine Learning

F1 Score

The harmonic mean of precision and recall, providing a single metric that balances both. F1 scores range from 0 to 1, with 1 being perfect precision and recall.

Why It Matters

F1 score is the go-to metric when you need to balance finding all relevant items with avoiding false alarms. It is the most balanced single evaluation metric.

Example

A model with 0.80 precision and 0.90 recall has an F1 score of 0.847 — a single number that captures performance from both angles.

Think of it like...

Like a school grade that equally weights attendance and test scores — you need both to score well, and being terrible at one drags down the whole grade.

Related Terms