Link Search Menu Expand Document

F1 Score

It represents the harmonic mean of precision and recall. It is defined as:

f1_score = 2*(precision * recall)/(precision + recall)

Example

from odin.classes import Metrics

my_metric = Metrics.F1_SCORE
# use my_metric as 'metric' parameter in the analyses

Tasks supported

Binary Classification Single-label Classification Multi-label Classification Object Detection Instance Segmentation
yes yes yes yes yes