New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeWarning: overflow encountered in exp2 topicmodeler.train #28
Comments
try i will update the documentation |
Hi, |
This is weird. topic modeling should have nothing to do with theano and tensorflow as I am just invoking gensim. however, gensim itself uses keras, which require either of them. maybe they updated the source code.... weird |
In the process of training, But why this warning appears in So all in all, this warning message can be ignored for the moment. However, we can report this to |
Reported here: piskvorky/gensim#1692 |
See this: piskvorky/gensim#1692 |
Code:
trainclassdict = shorttext.data.nihreports(sample_size=None)
topicmodeler = shorttext.generators.LDAModeler()
topicmodeler.train(trainclassdict, 128)
Error message:
/lib/python2.7/site-packages/gensim/models/ldamodel.py:535: RuntimeWarning: overflow encountered in exp2
perwordbound, np.exp2(-perwordbound), len(chunk), corpus_words
Then the results are variable for
topicmodeler.retrieve_topicvec('stem cell research')
The text was updated successfully, but these errors were encountered: