In [2]:
from __future__ import division

import graphlab as gl
import pandas as pd
import pyLDAvis
import pyLDAvis.graphlab

pyLDAvis.enable_notebook()
In [4]:
stories_sf = gl.load_sframe("hn_processed.sframe")
bows = stories_sf['bow']
In [34]:
topic_model = gl.topic_model.create(bows, num_topics=100, num_iterations=200)
In [8]:
pyLDAvis.graphlab.prepare(topic_model, bows)
Out[8]: