Instance Method

evaluation(on:)

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

Declaration

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

Parameters

labeledImages

A dictionary with keys that are labels, and values that are arrays of image 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 an Image Classifier

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

Generates metrics describing the classifier’s performance on labeled data provided in a data source.