Skip to content

Fix overflow error in GapEncoder - #161

Merged
alexis-cvetkov merged 5 commits into
skrub-data:masterfrom
alexis-cvetkov:master
Feb 27, 2021
Merged

Fix overflow error in GapEncoder#161
alexis-cvetkov merged 5 commits into
skrub-data:masterfrom
alexis-cvetkov:master

Conversation

@alexis-cvetkov

Copy link
Copy Markdown
Contributor

Closes #160, I fixed potential overflow in 1 / np.dot(Ht, W) with 1 / (np.dot(Ht, W) + 1e-10). I also added a unit test that raises RuntimeWarnings without the fix.

@GaelVaroquaux GaelVaroquaux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good.

However, could you please add a line in the CHANGES.rst file, creating a section for the future 0.1.1 release

@alexis-cvetkov

Copy link
Copy Markdown
Contributor Author

I have added a line for the 0.1.1 release, I am merging the PR now.
Thanks !

@alexis-cvetkov
alexis-cvetkov merged commit 9e5e999 into skrub-data:master Feb 27, 2021
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.

GapEncoder - RuntimeWarning: overflow encountered in reciprocal , overflow encountered in true_divide

2 participants