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 overflow error in GapEncoder #161

Merged
merged 5 commits into from
Feb 27, 2021

Conversation

alexis-cvetkov
Copy link
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.

Copy link
Member

@GaelVaroquaux GaelVaroquaux left a comment

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
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