Skip to content

Commit

Permalink
Correct mixed-up references to topics
Browse files Browse the repository at this point in the history
Thanks to Fotis Jannidis for the correction.
  • Loading branch information
Allen Riddell committed Mar 27, 2015
1 parent 7ad1124 commit 5f04651
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/topic_model_visualization.rst
Expand Up @@ -426,17 +426,17 @@ share of words associated with each topic:
@savefig plot_word_topic.png width=7in
plt.tight_layout()
We can see that topic 0 is much more concentrated on the words shown above
whereas topic 3 is much more diffuse (or uniform). Another way to appreciate
We can see that topic 3 is much more concentrated on the words shown above
whereas topic 0 is much more diffuse (or uniform). Another way to appreciate
this is to calculate the number of word *types* associated with each topic:

.. ipython:: python
np.sum(word_topic > 0, axis=0)
This shows us that a greater diversity of vocabulary items are associated with
topic 3 (likely many of the French words that appear only in Brontë's *The
Professor*) than with topic 0.
topic 0 (likely many of the French words that appear only in Brontë's *The
Professor*) than with topic 3.

.. FOOTNOTES
Expand Down

0 comments on commit 5f04651

Please sign in to comment.