Question about LDA weights

Hi experts,
I ran a LDA analysis and found the weights in the data table and wordcloud do not match.
Here is the data table. Specifically, the weight of the word "flavor" is 284.
However, when I visualized it using Wordcloud, the weight of the word flavor was 1,158. The weight in the table and wordcloud don't match. Anyone knows the reason?
Answers
-
Hi @EJang,
What you will find is that in the background, the wordcloud is creating the sum of the weights across all topicID's for each word before plotting. You can verify this using an Aggregate operator. In your case, it means that "flavor" appears in multiple topics and the weights of each occurrence add up to 1,158.
Let me know if you require further assistance.
Best,
Roland
1 -
Thank you so much for the comment!
Then, is there any other way to create the wordcloud matching the weight (284) number?
0 -
In this case I would look to filter on the column topicID so that you only display results for topic 0. You could then add some automation with loops or similar if you needed to do this for multiple topics. Would this meet your requirements?
0