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

# evaluation(on:)

Computes evaluation metrics.

## Declaration

```swift
func evaluation(on labeledTexts: MLTextClassifier.DataSource) -> MLClassifierMetrics
```

## Parameters

- `labeledTexts`: A data source of labeled texts to evaluate.

## Mentioned in

Creating a text classifier model

## Return Value

Return Value Classifier metrics.
