meanAveragePrecisionScore(_:labels:)
Computes the mean average precision.
Declaration
static func meanAveragePrecisionScore(_ pairs: some Sequence<(classification: ClassificationDistribution<Label>, labels: Set<Label>)>, labels: Set<Label>) -> FloatParameters
- pairs:
A sequence of classifications and true label pairs.
- labels:
The set of labels to consider.
Return Value
The mean average precision.
Discussion
An average precision score summarizes the precision-recall curve for a label. The mean average precision is the mean of the average precision scores for all the classification labels.