-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC Add comment about input checking in pairwise_distances
#31170
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
Conversation
I just realized that |
Yup I just said dim checking, it doesn't enforce 2d or check x and y have the same 2nd dim. Do you think comment is not needed? |
It is essentially the same comment as: scikit-learn/sklearn/metrics/pairwise.py Lines 227 to 229 in 16effb9
but I thought it would be useful to have it in |
I'm okay with the comment but I feel that it should instead be in |
That's a good point because this is relevant to both What do you think about including in the 'Notes' section of both functions, that no restrictions are placed on |
looks good |
Thanks @jeremiedbb ! Done. |
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. Thanks
Reference Issues/PRs
ref: #31162
Add comment that input dim checking is not done when user provides callable metric
What does this implement/fix? Explain your changes.
Any other comments?
cc @jeremiedbb