RuntimeWarning: invalid value encountered in

554 views
Skip to first unread message

ST. nonstop

unread,
Apr 1, 2018, 5:04:01 AM4/1/18
to gensim
D:\AnacondaPython\python.exe E:/研二文档/test2/similarty/similarity.py
D:\AnacondaPython\lib\site-packages\gensim\utils.py:1167: UserWarning: detected Windows; aliasing chunkize to chunkize_serial
  warnings.warn("detected Windows; aliasing chunkize to chunkize_serial")
Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\dcp\AppData\Local\Temp\jieba.cache
Loading model cost 2.883 seconds.
Prefix dict has been built succesfully.
D:\AnacondaPython\lib\site-packages\gensim\models\ldamodel.py:609: RuntimeWarning: overflow encountered in exp2
  perwordbound, np.exp2(-perwordbound), len(chunk), corpus_words
D:\AnacondaPython\lib\site-packages\gensim\models\ldamodel.py:522: RuntimeWarning: overflow encountered in true_divide
  gammad = self.alpha + expElogthetad * np.dot(cts / phinorm, expElogbetad.T)
D:\AnacondaPython\lib\site-packages\gensim\matutils.py:995: RuntimeWarning: invalid value encountered in subtract
  result = psi(alpha) - psi(np.sum(alpha))
D:\AnacondaPython\lib\site-packages\gensim\models\ldamodel.py:528: RuntimeWarning: invalid value encountered in less
  if meanchange < self.gamma_threshold:
D:\AnacondaPython\lib\site-packages\numpy\core\_methods.py:26: RuntimeWarning: invalid value encountered in reduce
  return umr_maximum(a, axis, None, out, keepdims)
lda.log_perplexity for corpus with num_topics =80: nan

Ivan Menshikh

unread,
Apr 2, 2018, 3:30:46 AM4/2/18
to gensim
Hello,

so, please share your code & data & model, we need to reproduce this error first
Reply all
Reply to author
Forward
0 new messages