-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
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
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.
Thank you for the PR!
sklearn/utils/sparsefuncs.py
Outdated
@@ -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. |
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.
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
?
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.
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?
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 can run git revert to revert the commit that changes inplace_swap_row
.
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.
Thank you, I've fixed it now.
This reverts commit 1405958.
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
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?