turicreate.text_classifier.TextClassifier

class turicreate.text_classifier.TextClassifier(state=None)

Methods

TextClassifier.classify(self, dataset) Return a classification, for each example in the dataset, using the trained model.
TextClassifier.evaluate(self, dataset[, metric]) Evaluate the model by making predictions of target values and comparing these to actual values.
TextClassifier.export_coreml(self, filename) Export the model in Core ML format.
TextClassifier.name(self) Returns the name of the model.
TextClassifier.predict(self, dataset[, …]) Return predictions for dataset, using the trained model.
TextClassifier.save(self, location) Save the model.
TextClassifier.summary(self) Get a summary for the underlying classifier.