-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
LDAModel DepracationWarning under Python 3 #494
Comments
I think this may be related to this discussion: #448 (comment) Yes, we definitely want to get rid of these warnings! |
So the offender is actually 561 which passes the
Changing |
These DeprecationWarnings are not present in the latest build. Closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed that when training an LDA model under Python 3 with NumPy 1.10 or 1.9 I get a long long list of
DepracationWarning
s from NumPy, so much so that it kills the browser running a notebook. This doesn't happen under Py2 with NumPy 1.10.I think it's because the
ids
is a list not andarray
. The warning refers to two lines inldamodel.py
Both use the
ids
list to index andarray
. Theids
are just feature ids from the current document (?) so I tried a quick fix of just changing theids
tondarray
which makes the warnings go away, but I haven't tested if it has some other consquences, I don't see why it would.The
DepracationWarning
s (just two of them, there are many more actually produced)The text was updated successfully, but these errors were encountered: