---
title: MLObjectDetectorMetrics
framework: createml
role: symbol
role_heading: Structure
path: createml/mlobjectdetectormetrics
---

# MLObjectDetectorMetrics

Metrics you use to evaluate an object detector’s performance.

## Declaration

```swift
struct MLObjectDetectorMetrics
```

## Overview

Overview An object detector generates intersection-over-union (IoU) metrics, which is a way to measure the similarity of two bounding boxes. The IoU metric is the overlapping area divided by the area of the union of the bounding boxes. For example, two bounding boxes that overlap perfectly have an IoU of 1.0, because their overlap is the same area as the union. Two bounding boxes that have no overlap have an IoU of 0.0. Anything between 0.0 and 1.0 either means the two bounding boxes partially overlap or one box completely encases the other.

## Topics

### Creating metrics

- [init(averagePrecision:meanAveragePrecision:)](createml/mlobjectdetectormetrics/init(averageprecision:meanaverageprecision:).md)

### Assessing the model

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

### Handling errors

- [isValid](createml/mlobjectdetectormetrics/isvalid.md)
- [error](createml/mlobjectdetectormetrics/error.md)

### Describing metrics

- [description](createml/mlobjectdetectormetrics/description.md)
- [debugDescription](createml/mlobjectdetectormetrics/debugdescription.md)
- [playgroundDescription](createml/mlobjectdetectormetrics/playgrounddescription.md)

### Default Implementations

- [CustomDebugStringConvertible Implementations](createml/mlobjectdetectormetrics/customdebugstringconvertible-implementations.md)
- [CustomPlaygroundDisplayConvertible Implementations](createml/mlobjectdetectormetrics/customplaygrounddisplayconvertible-implementations.md)
- [CustomStringConvertible Implementations](createml/mlobjectdetectormetrics/customstringconvertible-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomPlaygroundDisplayConvertible](swift/customplaygrounddisplayconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Model accuracy

- [Improving Your Model’s Accuracy](createml/improving-your-model-s-accuracy.md)
- [MLClassifierMetrics](createml/mlclassifiermetrics.md)
- [MLRegressorMetrics](createml/mlregressormetrics.md)
- [MLWordTaggerMetrics](createml/mlwordtaggermetrics.md)
- [MLRecommenderMetrics](createml/mlrecommendermetrics.md)
