-
-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
DOC Ensures that metrics.pairwise.euclidean_distances passes numpydoc validation #21429
DOC Ensures that metrics.pairwise.euclidean_distances passes numpydoc validation #21429
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.
LGTM. Thanks @embandera and @genvalen!
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.
A couple of changes
@@ -250,6 +249,7 @@ def euclidean_distances( | |||
Parameters | |||
---------- | |||
X : {array-like, sparse matrix} of shape (n_samples_X, n_features) | |||
Array containing points. | |||
|
|||
Y : {array-like, sparse matrix} of shape (n_samples_Y, n_features), \ | |||
default=None |
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.
Just below, you can as well add:
An array where each row is a sample and each column is a feature.
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.
You still need to add this line here.
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.
@glemaitre Got it! Adding this now
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Thanks @embandera |
… validation (scikit-learn#21429) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
… validation (scikit-learn#21429) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
… validation (scikit-learn#21429) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
… validation (#21429) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Reference Issues/PRs
Addresses #21350
#DataUmbrella
What does this implement/fix? Explain your changes.
This PR ensures metrics.pairwise.euclidean_distances is compatible with numpydoc:
Any other comments?
Partner: @genvalen