---
title: averagePrecision
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mlobjectdetectormetrics/averageprecision
---

# averagePrecision

Two dictionaries of average precisions at different thresholds.

## Declaration

```swift
var averagePrecision: (variedIoU: [String : Double], IoU50: [String : Double]) { get }
```

## Parameters

- `variedIoU`: The average precision values of all classes at various thresholds, varying from 50% to 95%, for the intersection-over-union metric. The keys of the dictionary are each object’s label.
- `IoU50`: The average precision values of all classes at a 50% threshold of intersection-over-union metric. The keys of the dictionary are each object’s label.

## See Also

### Assessing the model

- [meanAveragePrecision](createml/mlobjectdetectormetrics/meanaverageprecision.md)
