Open niyikai opened 6 years ago
@niyikai It would be helpful if you posted the error with traceback here.
Hmm, hard to tell where the underflow is without the compiled c file. My guess is that in one of the log likelihood functions in _topic_models.pyx
, a zero or very small number is being passed to one of the lngamma
functions. We use lngamma
instead of gamma
to protect against overflow, but it looks like it might be better to have some logic that chooses which to use depending on the size of the input. Feel free to test that out and submit a pull request if it works.
@bearnshaw Thanks a lot! I found that the real cause was my computer did not have enough memory.
There is no problem when running on small dataset, but “underflow” happens when I change to the large data. Can someone help with this problem? Why this error happens and how to solve it.