F1Scores
F1 score is a performance metric used in binary classification to balance precision and recall. It is the harmonic mean of precision and recall, defined as F1 = 2 × (precision × recall) / (precision + recall). Precision equals TP / (TP + FP) and recall equals TP / (TP + FN), where TP, FP, and FN are true positives, false positives, and false negatives. The F1 score ranges from 0 to 1, with 1 indicating perfect precision and recall.
The F1 score is especially useful when the class distribution is imbalanced or when false positives and
For multiclass problems, F1 can be extended by computing per-class F1 scores and then aggregating. Common approaches
The metric can be generalized with the Fβ score, which weights recall more than precision when β >
Limitations include sensitivity to the chosen threshold for converting scores to class labels and the fact