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.

By

Updated

Cheat sheet: The F1 Score and the Classification Report
Category
Machine Learning
Level
Journeyman
Tags
ai, Classification Report, F1 Score, Harmonic Mean, Precision, python, Recall (ai)