Instance Method

evaluation(on:)

Evaluates the classifier with a test dictionary.

Declaration

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

Parameters

labeledTexts

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

Return Value

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

See Also

Evaluating a Text Classifier