DOC Ensures that partial_dependence passes numpydoc validation#24174
Merged
thomasjpfan merged 3 commits intoscikit-learn:mainfrom Aug 13, 2022
Merged
DOC Ensures that partial_dependence passes numpydoc validation#24174thomasjpfan merged 3 commits intoscikit-learn:mainfrom
thomasjpfan merged 3 commits intoscikit-learn:mainfrom
Conversation
thomasjpfan
reviewed
Aug 12, 2022
sklearn/utils/sparsefuncs.py
Outdated
| 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. |
Member
There was a problem hiding this comment.
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?
Contributor
Author
There was a problem hiding this comment.
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?
Member
There was a problem hiding this comment.
You can run git revert to revert the commit that changes inplace_swap_row.
Contributor
Author
There was a problem hiding this comment.
Thank you, I've fixed it now.
This reverts commit 1405958.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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?