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

# evaluation(on:)

Generates metrics describing the image classifier’s performance on labeled images represented by a data source.

## Declaration

```swift
func evaluation(on labeledImages: MLImageClassifier.DataSource) -> MLClassifierMetrics
```

## Parameters

- `labeledImages`: A set of labeled images in a data source.

## Return Value

Return Value The metrics that indicate the performance of the classifier when operating on the input dataset.

## See Also

### Evaluating an image classifier

- [trainingMetrics](createml/mlimageclassifier/trainingmetrics.md)
- [validationMetrics](createml/mlimageclassifier/validationmetrics.md)
