Instance Method

evaluation(on:)

Evaluates the classifier with a test data source.

Declaration

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

Parameters

labeledTexts

The text and labels that you use to test the text classifier, contained in a data source.

Return Value

The metrics for the accuracy of the classifier on the passed in data set.

See Also

Evaluating a Text Classifier