Instance Method

evaluation(on:)

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

Declaration

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

Parameters

labeledImages

A set of labeled images given in a data source.

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: [String : [URL]]) -> MLClassifierMetrics

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