Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC Ensures that partial_dependence passes numpydoc validation #24174

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

Merged
merged 3 commits into from
Aug 13, 2022

Conversation

ak04p
Copy link
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
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!

@@ -361,7 +361,7 @@ def inplace_swap_row_csr(X, m, n):

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
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
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
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
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
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