Instance Method

evaluation(on:)

Returns metrics describing the classifier’s performance on labeled data, provided in a dictionary.

Declaration

func evaluation(on testingData: [String : [URL]]) -> MLClassifierMetrics

Parameters

testingData

A dictionary with keys that are labels, and values that are arrays of audio-file URLs corresponding to those labels.

Return Value

The metrics that indicate the performance of the classifier when operating on the input data set.

See Also

Evaluating a Sound Classifier

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

Returns metrics describing the classifier’s performance on the data source.