EN - FR - DE - ES - IT - PT -

LexiconDream

⚖️ F1 Score

The harmonic mean of precision and recall, balancing both metrics.

F1 Score

Precision and recall pull in opposite directions. Tighten a classifier to reduce false positives and you miss more true positives. Loosen it and the reverse happens. The F1 score combines both into a single number, the harmonic mean of precision and recall.

The harmonic mean punishes imbalance. If either precision or recall is low, F1 drops sharply. A model with 90 percent precision and 10 percent recall scores around 18, not 50. That behaviour makes F1 useful when both errors matter.

When F1 helps

F1 is not always the right choice. When one error type is far worse, weighted variants or a custom cost function serve better. F1 assumes precision and recall deserve equal weight, which is a modeling decision, not a law.

Comments

No comments yet. Be the first to share a thought.

Leave a comment