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

[MRG] BUG Clip distances below 0 in nan_euclidean_distances #15683

Merged
merged 1 commit into from
Nov 20, 2019

Conversation

thomasjpfan
Copy link
Member

Clips distances below 0 in nan_euclidean_distances. There can be precision errors when doing distances -= with floats which may cause some of the distances to be <0.

CC: @jnothman @glemaitre

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for catching this.

Copy link
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

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

I have confirmed test failure at master

@jnothman jnothman merged commit ccac637 into scikit-learn:master Nov 20, 2019
@thomasjpfan
Copy link
Member Author

Should we put this on the 0.22.1 milestone to make sure it is included as a bug fix?

@jnothman
Copy link
Member

jnothman commented Nov 20, 2019 via email

adrinjalali pushed a commit to adrinjalali/scikit-learn that referenced this pull request Nov 25, 2019
jnothman pushed a commit that referenced this pull request Nov 28, 2019
panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
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.

None yet

3 participants