machine-learning classification statistics Definition F1-Score The F1-score is the harmonic mean of Precision and Recall. It provides a single metric that balances both concerns, particularly useful in the presence of class imbalance. Formally: F1=2⋅Precision+RecallPrecision⋅Recall