precisionScore(label:)
Computes the precision score for a class label.
Declaration
func precisionScore(label: Label) -> DoubleParameters
- 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 tp / (tp + fp) where tp is the number of true positives and fp is the number of false positives.