Skip to content

DOC Ensures that sklearn.utils.validation.indexable passes numpydoc validation#21431

Merged
glemaitre merged 2 commits intoscikit-learn:mainfrom
majauhar:validation_indexable
Oct 24, 2021
Merged

DOC Ensures that sklearn.utils.validation.indexable passes numpydoc validation#21431
glemaitre merged 2 commits intoscikit-learn:mainfrom
majauhar:validation_indexable

Conversation

@majauhar
Copy link
Copy Markdown
Contributor

Co-authored-by: miwojc miwojc@protonmail.com

Reference Issues/PRs

Addresses #21350

What does this implement/fix? Explain your changes.

Any other comments?

This is my and @miwojc second pull request made during #DataUmbrella sprint.

Co-authored-by: miwojc <miwojc@protonmail.com>
Copy link
Copy Markdown
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.

Thanks for the PR. I propose a small suggestion to follow what is proposed in numpydoc:

  • since we return result, we can use it as a name of a variable
  • we can specify what to expect as type in the returned list.
  • adding the specificity of passing None through in the results.

Modifies the Returns section in the docstring of indexable() function to make it more informative and clear.

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
@glemaitre glemaitre merged commit 8d26900 into scikit-learn:main Oct 24, 2021
@glemaitre
Copy link
Copy Markdown
Member

Thanks @majauhar LGTM

ogrisel pushed a commit to ogrisel/scikit-learn that referenced this pull request Oct 28, 2021
…alidation (scikit-learn#21431)

Co-authored-by: miwojc <miwojc@protonmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
…alidation (scikit-learn#21431)

Co-authored-by: miwojc <miwojc@protonmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Dec 24, 2021
…alidation (scikit-learn#21431)

Co-authored-by: miwojc <miwojc@protonmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
glemaitre added a commit that referenced this pull request Dec 25, 2021
…alidation (#21431)

Co-authored-by: miwojc <miwojc@protonmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants