Exercise

Visualizing topics

Using what we've covered in previous chapters, let's visualize the topics produced by the LDA.

Instructions

100 XP
  • Keep the top 10 highest word probabilities by topic.
  • Create term2, a factor ordering term by word probability.
  • Plot term2 and the word probabilities.
  • Facet the bar plot by (i.e., ~) topic.