Skip to content

Enable float32 for LSI - stochastic SVD#1620

Merged
menshikh-iv merged 3 commits intopiskvorky:developfrom
isamaru:lsi_dtype
Oct 13, 2017
Merged

Enable float32 for LSI - stochastic SVD#1620
menshikh-iv merged 3 commits intopiskvorky:developfrom
isamaru:lsi_dtype

Conversation

@isamaru
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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