Skip to content

DOC Ensures that partial_dependence passes numpydoc validation#24174

Merged
thomasjpfan merged 3 commits intoscikit-learn:mainfrom
ak04p:doc-valid
Aug 13, 2022
Merged

DOC Ensures that partial_dependence passes numpydoc validation#24174
thomasjpfan merged 3 commits intoscikit-learn:mainfrom
ak04p:doc-valid

Conversation

@ak04p
Copy link
Copy Markdown
Contributor

@ak04p ak04p commented Aug 12, 2022

Reference Issues/PRs

Addresses #21350

What does this implement/fix? Explain your changes.

Ensures that sklearn.inspection._partial_dependence.partial_dependence passes numpydoc validation.
Verified that all tests passed.

Any other comments?

Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a 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!

def inplace_swap_row(X, m, n):
"""
Swaps two rows of a CSC/CSR matrix in-place.
To swap two rows of a CSC/CSR matrix in-place.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title and the opening comment states that this updates partial_dependence, but inplace_swap_row is changed in this PR. Did you mean to update partial_dependence?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no, I was supposed to make another PR for inplace_swap_row but it seems I've made a mistake. Is there any way to separate the 2 commits?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can run git revert to revert the commit that changes inplace_swap_row.

Copy link
Copy Markdown
Contributor Author

@ak04p ak04p Aug 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I've fixed it now.

Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thomasjpfan thomasjpfan merged commit ec69f59 into scikit-learn:main Aug 13, 2022
@ak04p ak04p deleted the doc-valid branch August 13, 2022 15:30
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 12, 2022
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.

2 participants