---
title: "evaluation(on:)"
framework: Create ML
role: symbol
role_heading: Instance Method
platforms: [iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 10.15+, visionOS 1.0+]
path: "createml/mlsoundclassifier/evaluation(on:)-7fmux"
---

# evaluation(on:)

Generates metrics by evaluating the sound classifier’s performance on a dataset represented by a data source.

## Declaration

```swift
func evaluation(on testingData: MLSoundClassifier.DataSource) -> MLClassifierMetrics
```

## Parameters

- `testingData`: A collection of labeled audio files represented by an doc://com.apple.createml/documentation/CreateML/MLSoundClassifier/DataSource.

## Return Value

Return Value An MLClassifierMetrics instance that contains the evaluation results.
