graphlab.topic_model.TopicModel

class graphlab.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 graphlab.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(model, *args, **kwargs) Estimate the model’s ability to predict new data.
TopicModel.get(field) Return the value of a given field.
TopicModel.get_current_options() Return a dictionary with the options used to define and create the current TopicModel instance.
TopicModel.get_topics([topic_ids, ...]) Get the words associated with a given topic.
TopicModel.name() Returns the name of the model.
TopicModel.predict(dataset[, output_type, ...]) Use the model to predict topics for each document.
TopicModel.save(location) Save the model.
TopicModel.show([view]) Visualize with GraphLab Canvas canvas.
TopicModel.summary([output]) Print a summary of the model.