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

Enable float32 for LSI - stochastic SVD #1620

Merged
merged 3 commits into from
Oct 13, 2017

Conversation

isamaru
Copy link
Contributor

@isamaru isamaru commented Oct 10, 2017

@piskvorky @janpom @menshikh-iv

Enables using float32 in LSI calculation by exposing dtype as parameter. Default remains float64 and the behavior shouldn't change at all unless different dtype is used.

Copy link
Contributor

@menshikh-iv menshikh-iv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me - looks good, please add test with dtype=np.float32 for example and check that all matrices in this type after training

P/S Don't forget to pull your branch first, because I fixed PEP8 mistake in your code

- fix float32 for one-pass LSI
@menshikh-iv
Copy link
Contributor

Thanks @isamaru, very useful PR 🔥

@menshikh-iv menshikh-iv merged commit 16b812c into piskvorky:develop Oct 13, 2017
horpto pushed a commit to horpto/gensim that referenced this pull request Oct 28, 2017
* Enable float32 for LSI - stochastic SVD

* Fix PEP8 issue

* - Add testTransformFloat32
- fix float32 for one-pass LSI
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.

2 participants