-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MAINT Parameters validation for sklearn.metrics.pairwise.nan_euclidean_distances #26067
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
MAINT Parameters validation for sklearn.metrics.pairwise.nan_euclidean_distances #26067
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The failure with the KNNImputer
makes me think that the docstring here is not up-to-date. If we accept a wider range of values as in KNNImputer
, we should probably write a couple of unit tests for the nan_euclidean_distances
to be sure that they work.
I checked the tests of |
The |
I included these changes in #26085 to showcase the need for the extended constraint. Thanks @Charlie-XIAO |
Sure, thank you very much! |
Reference Issues/PRs
Towards #24862.
What does this implement/fix? Explain your changes.
Automatic parameters validation for sklearn.metrics.pairwise.nan_euclidean_distances