Contents

f1Score(label:)

Computes the F1 score for a class label.

Declaration

func f1Score(label: Label) -> Double

Parameters

  • label:

    The label to use as true positive.

Return Value

The F1 score for the given label.

Discussion

The balanced F-score, or F1 score, is computed as the harmonic mean of the precision and recall.

See Also

Computing and scoring