python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can I find the optimal number of topics in LDA with scikit-learn?
I'm computing topic models through scikit-learn with this script (I'm starting with a dataset "df" which has one document per row in the column "Text")
from sklearn.decomposition i...
Himan
Votes: 0
Answers: 0
Topic modelling- Calculate the coherence score of an sklearn LDA model?
I tried several things to calculate the coherence score for a sklearn LDA model, but it does not work out. What is a way to calculate the Coherence score for a sklearn LDA model?
When I use the standa...
Selena
Votes: 0
Answers: 1
Topic Modelling: WordCloud For Every Topic in LDA model
Question: How can I create a Word Cloud for each topic that has been computed by the LDA model. I tried the following, but can't seem to work it out further to create a word cloud for each topic.
firs...
Selena
Votes: 0
Answers: 1
Error in .rect_dendrogram(dend, k = k, palette = rect_border, rect_fill = rect_fill, : k must be between 2 and 97
I am trying to estimate a cluster dendrogram in R for a structural topic model I produced with 98 topics.
I first ran the following which worked well:
res.hc <- eclust(scale(out_corr$cor), "hc...
md_14
Votes: 0
Answers: 1