precisionScore(for:)
Computes the precision score for a class label.
Declaration
func precisionScore(for label: Label) -> FloatParameters
- 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).