Skip to content
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

np.log runtime warnings #166

Open
JaimieMurdock opened this issue Apr 27, 2018 · 0 comments
Open

np.log runtime warnings #166

JaimieMurdock opened this issue Apr 27, 2018 · 0 comments

Comments

@JaimieMurdock
Copy link
Member

There are warnings in the np.log calculations in ldacgsmulti:

/home/jammurdo/anaconda3/lib/python3.6/site-packages/vsm/mode/lldacgsmulti.py:435: RuntimeWarning: divide by zero encountered in log
  log_kc = np.log(top_doc / top_doc.sum(0)[np.newaxis, :])
/home/jammurdo/anaconda3/lib/python3.6/site-packages/vsm/model/ldacgsmulti.py:461: RuntimeWarning: divide by zero encountered in log
  mtrand_state[4])
/home/jammurdo/anaconda3/lib/python3.6/site-packages/vsm/model/ldacgsmulti.py:434: RuntimeWarning: divide by zero encountered in log
  log_wk = np.log(gbl_word_top * inv_top_sums[np.newaxis, :])

Perhaps a consequence of using single-precision vectors, perhaps a consequence of an integer<->float miscast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant