---
title: "meanAveragePrecisionScore(classifications:groundTruth:labels:)"
framework: createmlcomponents
role: symbol
role_heading: Type Method
path: "createmlcomponents/multilabelclassificationmetrics/meanaverageprecisionscore(classifications:groundtruth:labels:)"
---

# meanAveragePrecisionScore(classifications:groundTruth:labels:)

Computes the mean average precision.

## Declaration

```swift
static func meanAveragePrecisionScore(classifications: some Sequence<ClassificationDistribution<Label>>, groundTruth: some Sequence<Set<Label>>, labels: Set<Label>) -> Float
```

## Parameters

- `classifications`: A sequence of multi-label classifications.
- `groundTruth`: A sequence of multi-label correct labels.
- `labels`: The set of labels to consider.

## Return Value

Return Value The mean average precision.

## Discussion

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.

## See Also

### Computing the precision

- [meanAveragePrecisionScore(_:)](createmlcomponents/multilabelclassificationmetrics/meanaverageprecisionscore(_:).md)
- [meanAveragePrecisionScore(_:labels:)](createmlcomponents/multilabelclassificationmetrics/meanaverageprecisionscore(_:labels:).md)
- [meanAveragePrecisionScore(classifications:groundTruth:)](createmlcomponents/multilabelclassificationmetrics/meanaverageprecisionscore(classifications:groundtruth:).md)
