[Python] Macro VS Micro VS Weighted VS Samples F1 Score

Discussão em 'Python' iniciado por Stack, Agosto 14, 2025.

  1. Stack

    Stack Membro Participativo

    In sklearn.metrics.f1_score, the f1 score has a parameter called "average". What does macro, micro, weighted, and samples mean? Please elaborate, because in the documentation, it was not explained properly. Or simply answer the following:

    1. Why is "samples" best parameter for multilabel classification?
    2. Why is micro best for an imbalanced dataset?
    3. what's the difference between weighted and macro?

    Continue reading...

Compartilhe esta Página