Open mmantyla opened 6 years ago
topic_word_distribution
can be considered as "fixed" after model fitted. doc_topic_distr
however depends on the input data and will different during inference.
Sure. In my course only one run is done after which the model is saved for further analysis. However, several models from different data set are done but all with one run. Now saving each of them requires that two different objects are saved. With topicmodels package saving one model was enough.
I will make it optional. Now we store it internally anyway (but this is not desirable because serialized model is huge).
This is mostly annoyance. I think it would be logical if the lda_model would also store the resulting doc_topic_distr as part of the public fields.
doc_topic_distr = lda_model$fit_transform(x = dtm, n_iter = 1000, convergence_tol = 0.001, n_check_convergence = 25, progressbar = FALSE)
We can see that topic_word_distribution is already there so having doc_topic_distribution would make sense as well. Or have I misunderstood something.
`` > lda_model