Skip to content

Weighted-F1

A method to combine F1 Score across multiple classes: the F1 score of each class is weighted by the number of examples in that class. Larger classes contribute more.

Comparison Options

Macro-F1 Weighted-F1
Class Weight Equal Proportional to size
Rare Classes Heard Drowned
When to Use All classes are important Overall picture is important considering volume

Why It Is Needed

When classes are imbalanced but it is more important not to miss the majority of examples, Weighted-F1 provides a fairer evaluation than regular Macro-F1.

See Also

← All terms