In more detail
F1 gives a single score that is high only when both precision and recall are high. It is more informative than overall accuracy when classes are imbalanced.
The harmonic mean of precision and recall: 2 × P × R / (P + R).
F1 gives a single score that is high only when both precision and recall are high. It is more informative than overall accuracy when classes are imbalanced.
Precision is the share of predicted positives that are correct; recall is the share of actual positives that were found.
When some classes have far more samples than others, such as 95% background and 5% buildings.
A table comparing predicted classes with reference classes for a set of samples.