---
title: "evaluation(on:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mlobjectdetector/evaluation(on:)"
---

# evaluation(on:)

Generates metrics by evaluating the object detector’s performance using annotated images in a data source.

## Declaration

```swift
func evaluation(on annotatedImages: MLObjectDetector.DataSource) -> MLObjectDetectorMetrics
```

## Parameters

- `annotatedImages`: An doc://com.apple.createml/documentation/CreateML/MLObjectDetector/DataSource instance that contains a set of images with object annotations.

## Return Value

Return Value An MLObjectDetectorMetrics instance that represents the object detector’s performance on the annotated images.

## See Also

### Evaluating an object detector

- [evaluation(on:imageColumn:annotationColumn:)](createml/mlobjectdetector/evaluation(on:imagecolumn:annotationcolumn:).md)
- [trainingMetrics](createml/mlobjectdetector/trainingmetrics.md)
- [validationMetrics](createml/mlobjectdetector/validationmetrics.md)
