# The F1 Score and the Classification Report

The F1 score joins precision and recall into one number with their harmonic mean, which stays low when either one is low, scikit-learn gives it with f1_score, and classification_report prints precision, recall and F1 for every class with macro and weighted averages, which you read class by class, because one number can hide the class you care about.

![Cheat sheet: The F1 Score and the Classification Report](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/a688ba886a2f43cfaa2659e416f5fdda.webp)

- Category: Machine Learning
- Level: Journeyman
- Tags: ai, Classification Report, F1 Score, Harmonic Mean, Precision, python, Recall (ai)
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/ml-f1-score-cheat-sheet
