Understand which predictions each metric counts
Accuracy is the proportion of correct predictions. It counts true positives and true negatives equally. Binary F1 is the harmonic mean of positive-class precision and recall. Its formula is 2TP divided by (2TP + FP + FN). True negatives are absent from this formula, which is useful when you care about finding a less common positive class.
Work through 100 predictions
Imagine a support queue with 10 messages that genuinely need urgent review. A classifier flags 12 messages. Eight are urgent and four are routine. It misses two urgent messages and correctly leaves 86 routine ones alone. Accuracy is 94%. Precision is 8/12, recall is 8/10, and F1 is 16/22, or about 0.73. A model that flags nothing still gets 90% accuracy but has F1 of zero for the urgent class.
Pick the metric before comparing models
Accuracy can be a useful summary when classes are reasonably balanced and mistakes have comparable costs. Select F1 when you need a single summary of precision and recall for a specified class. If missing an urgent case costs much more than an unnecessary review, report recall and precision separately and set a minimum acceptable recall. Check the counts as well as the scores.
Document the averaging and threshold
For multiclass work, macro F1 gives each class equal weight while weighted F1 weights each class by its support. Report your choice explicitly. If your model outputs probabilities, choose a decision threshold on validation data and report results at that fixed threshold on the test set. Include the class definition, sample size and confusion matrix alongside your headline score.
Related guides
Further reading. scikit-learn F1 documentation.
