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

# meanAveragePrecisionScore(classifications:groundTruth:)

Computes the mean average precision.

## Declaration

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

## Parameters

- `classifications`: A sequence of multi-label classifications.
- `groundTruth`: A sequence of multi-label correct labels.

## 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:labels:)](createmlcomponents/multilabelclassificationmetrics/meanaverageprecisionscore(classifications:groundtruth:labels:).md)
