-
-
Notifications
You must be signed in to change notification settings - Fork 26k
MAINT Parameters validation for sklearn.metrics.pairwise_distances_argmin #26124
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_distances_argmin #26124
Conversation
… on distances_argmin_min, so i had to change
I'm not sure what |
My intuition would be to have the same metrics as allowed in the neighbors: scikit-learn/sklearn/neighbors/_base.py Lines 68 to 74 in 289557a
|
@glemaitre It seems that scikit-learn/sklearn/metrics/pairwise.py Line 612 in 036b780
Originally |
…distances_argmin_min
…hub.com/Charlie-XIAO/scikit-learn into param-val-pairwise_distances_argmin_min
…distances_argmin_min
…distances_argmin_min
…distances_argmin_min
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.
I agree we could make valid metrics the same in most places, if not everywhere, but maybe that'd be a separate PR.
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.
Thank you for the PR @Charlie-XIAO !
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.
LGTM
…rn#26124) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com> Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Reference Issues/PRs
Towards #24862.
What does this implement/fix? Explain your changes.
Automatic parameters validation for sklearn.metrics.pairwise_distances_argmin