Contents

precisionScore(for:)

Computes the precision score for a class label.

Declaration

func precisionScore(for label: Label) -> Float

Parameters

  • label:

    The label to use as true positive.

Return Value

The precision score for the given label.

Discussion

Precision score is computed as the ratio truePositive / (truePositive + falsePositive).

See Also

Computing and scoring