Storage glossary · JSON corpus · llms.txt · hesela.com

f1-score · shipping · also balanced F-score, F1 measure

F1 score

F1 score is the harmonic mean of precision and recall for a specified positive class and decision threshold.

Related Observatory article: F1 score on hesela.com

For binary predictions, F1 = 2TP / (2TP + FP + FN); true negatives do not enter this formula. If TP, FP and FN are all zero, it is undefined; report the software's zero-division convention. F1 is neither recall nor accuracy, and multiclass or multilabel results must state the averaging rule. [1] Separately averaged or median precision and recall do not generally reconstruct an averaged or median F1. [2]

Relations

related
precision, recall, false-positive-rate, class-prevalence, average-precision, temporal-validation

Limitations

Citations

  1. scikit-learn: f1_score, binary formula, averaging and zero-division conventions. (accessed 2026-10-14)
  2. scikit-learn: precision, recall and F-measures; aggregation and metric denominators. (accessed 2026-10-14)

JSON: /data/terms/f1-score.json