When can micro-averaged, macro-averaged, or weighted F1 be misleading in multi-class classification?

Quick Overview

Asks when micro, macro and weighted F1 give a misleading picture of a multi-class classifier. Tests how each average is computed, how class imbalance, tiny classes and never-predicted classes distort them, and what to report alongside a single score.

When can micro-averaged, macro-averaged, or weighted F1 be misleading in multi-class classification?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When can micro-averaged, macro-averaged, or weighted F1 be misleading in multi-class classification? ```hint Try a degenerate model Take an imbalanced test set and a model that always predicts the majority class. Work out what each of the three averages reports for it. ``` ### What a Strong Answer Covers - How each average is computed and which classes or examples dominate it. - A failure case for each average, including what happens with very small classes and never-predicted classes. - What every single-number F1 hides, whichever average is used. - What to report instead, and how to choose an average that matches the goal. ### Follow-up Questions - Your macro F1 dropped by two points between two model versions, and the smallest class has 8 test examples. How would you decide whether the drop is real? - Why does micro F1 equal accuracy in single-label multi-class classification, and when does that stop being true? - Errors between some pairs of classes cost far more than others. What metric would you use? - How would you choose decision thresholds per class when the goal is macro F1?

Overview: Asks when micro, macro and weighted F1 give a misleading picture of a multi-class classifier. Tests how each average is computed, how class imbalance, tiny classes and never-predicted classes distort them, and what to report alongside a single score.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

When can micro-averaged, macro-averaged, or weighted F1 be misleading in multi-class classification?

What a Strong Answer Covers Guidance

  • How each average is computed and which classes or examples dominate it.
  • A failure case for each average, including what happens with very small classes and never-predicted classes.
  • What every single-number F1 hides, whichever average is used.
  • What to report instead, and how to choose an average that matches the goal.

Follow-up Questions Guidance

  • Your macro F1 dropped by two points between two model versions, and the smallest class has 8 test examples. How would you decide whether the drop is real?
  • Why does micro F1 equal accuracy in single-label multi-class classification, and when does that stop being true?
  • Errors between some pairs of classes cost far more than others. What metric would you use?
  • How would you choose decision thresholds per class when the goal is macro F1?