AI Terminology
/Advanced
F1 Score
Definition
The harmonic mean of Precision and Recall. It provides a single, balanced metric to evaluate a model when you need to balance both False Positives and False Negatives, particularly on uneven datasets.
Explain Like I'm New
The ultimate combined grade. Since Precision and Recall are a see-saw (if one goes up, the other usually goes down), the F1 Score punishes extreme imbalances. To get a high F1 score, the AI must be both highly Precise AND have high Recall.
Real World Example
A data scientist trains 5 different ML models to detect credit card fraud. Since most transactions are legit, 'Accuracy' is a useless metric. The scientist compares the models using their F1 Scores to find the best all-around performer.
Common Use Cases
- •Imbalanced datasets
- •Model benchmarking
Interview Questions
basic
- If a model has 100% Recall but 10% Precision, will its F1 Score be high or low?
intermediate
- Why does the F1 score use a 'Harmonic Mean' instead of a simple average?