turicreate.topic_model.TopicModel

class turicreate.topic_model.TopicModel(model_proxy)

TopicModel objects can be used to predict the underlying topic of a document.

This model cannot be constructed directly. Instead, use turicreate.topic_model.create() to create an instance of this model. A detailed list of parameter options and code samples are available in the documentation for the create function.

Methods

TopicModel.evaluate(train_data[, test_data, …]) Estimate the model’s ability to predict new data.
TopicModel.get_topics([topic_ids, …]) Get the words associated with a given topic.
TopicModel.predict(dataset[, output_type, …]) Use the model to predict topics for each document.
TopicModel.save(location) Save the model.
TopicModel.summary([output]) Print a summary of the model.