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

# evaluation(on:imageColumn:annotationColumn:)

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

## Declaration

```swift
func evaluation(on annotatedImages: MLDataTable, imageColumn: String, annotationColumn: String) -> MLObjectDetectorMetrics
```

## Parameters

- `annotatedImages`: An doc://com.apple.createml/documentation/CreateML/MLDataTable instance that contains a set of images with object annotations.
- `imageColumn`: The name of the column in the data table that contains the image file URLs.
- `annotationColumn`: The name of the column in the data table that contains the 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:)](createml/mlobjectdetector/evaluation(on:).md)
- [trainingMetrics](createml/mlobjectdetector/trainingmetrics.md)
- [validationMetrics](createml/mlobjectdetector/validationmetrics.md)
