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

# 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.

## Mentioned in

Creating an Image Classifier Model

## Return Value

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