I wish to know the default number of iterations in gensim's LDA (Latent Dirichlet Allocation) algorithm. I don't think the documentation talks about this. (Number of iterations is denoted by the parameter iterations while initializing the LdaModel ). Thanks !
Gensim LDA - Default number of iterations
7.4k views Asked by Utsav T At
3
There are 3 answers
0
On
If you use:
import logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s',
level=logging.INFO)
It will tell you
running batch LDA training, 17 topics, 10 passes over the supplied corpus of 1130 documents, updating model once every 1130 documents, evaluating perplexity every 1130 documents, iterating 50x with a convergence threshold of 0.001000
Checked the module's files in the python/Lib/site-packages directory. The constructor is something like this -
So, the default number of iterations stands at 50.