Session Ready
Exercise

Probabilities of words in topics

Parameter alpha determines the values of probabilities that a document belongs to a topic. Parameter delta does the same for probability distribution of words over topics. By default, delta is set to 0.1. You will fit a model with a different delta and make a plot of results.

Instructions 1/2
undefined XP
  • 1
    • Fit the model for delta set to 0.1, create a tidy table containing probabilities beta for words from the my_terms vector and make a stacked column chart from the data.
    • 2
      • Fit the model for delta set to 0.5, create a tidy table containing probabilities beta for words from the my_terms vector and make a stacked column chart from the data.