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

Fix deprecation warning np.sum(generator) #2296

Merged
merged 1 commit into from
Dec 15, 2018
Merged

Fix deprecation warning np.sum(generator) #2296

merged 1 commit into from
Dec 15, 2018

Conversation

rsdel2007
Copy link
Contributor

@rsdel2007 rsdel2007 commented Dec 14, 2018

Fix #2270.
Since np.sum(generator) is deprecated, it is replaced by python inbuilt sum.

@piskvorky
Copy link
Owner

piskvorky commented Dec 14, 2018

Thanks! @rsdel2007 can you check if this pattern (summing with numpy over a generator) appears elsewhere in Gensim too?

Let's fix 'em all!

@rsdel2007
Copy link
Contributor Author

@piskvorky ,I will look into that 😃 .

@menshikh-iv
Copy link
Contributor

@rsdel2007 please ping me when you are check and fix all of them and I'll merge your PR

@rsdel2007
Copy link
Contributor Author

Hi @menshikh-iv ,I have checked other files and I don't think this pattern is somewhere else.
You can merge this.

@menshikh-iv menshikh-iv changed the title Fixes #2270 Fix deprecation warning np.sum(generator) Dec 15, 2018
@menshikh-iv
Copy link
Contributor

Thanks, congratz with the first contribution @rsdel2007 🥇 ⭐

@menshikh-iv menshikh-iv merged commit 5f6b28c into piskvorky:develop Dec 15, 2018
@rsdel2007 rsdel2007 deleted the rsdel2 branch December 28, 2018 12:56
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

Successfully merging this pull request may close these issues.

3 participants