-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
DOC corrected docstring on make_classification #22797
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!
@@ -154,6 +154,11 @@ def make_classification( | |||
|
|||
y : ndarray of shape (n_samples,) | |||
The integer labels for class membership of each sample. | |||
|
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.
To fix the linting issues:
-------- | ||
make_blobs : Simplified variant. | ||
make_multilabel_classification : Unrelated generator for multilabel tasks. | ||
selection benchmark", 2003. |
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.
Same here regarding linting issues:
selection benchmark", 2003. | |
selection benchmark", 2003. |
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.
Hi, thanks for the review... I corrected the error on _samples_generator.py, but I'm not sure how to proceed with the PR. Do I close it and start all over with a new PR?
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.
Answering my own question: I think I have to push to my fork, and this will update the PR. In case this is not correct, please let me know. This is my first PR ever, so thank you for your patience.
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.
That is correct. Pushing to the branch on your fork will update the PR.
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.
May you remove this line:
"sklearn.datasets._samples_generator.make_classification", |
so that the CI runs the numpydoc tests on the make_classification
?
I think I should have done a pull before the last push. But now I'm not sure if that will fix it. Sorry |
Since many people were working on git remote add upstream [email protected]:scikit-learn/scikit-learn.git You can try to fix the merge conflict by running: git fetch upstream
# make sure you are on the `docstring1` branch
git checkout docstring1
# Merge `upstream/main` into your branch.
git merge upstream/main There will be a merge conflict you would need to resolve. |
Thank you for showing me the steps to try. I don't know why it is skipping tests now. |
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
I tested your PR locally and can confirm that |
Reference Issues/PRs
Addresses meta issue #21350
What does this implement/fix? Explain your changes.
Corrected docstring on make_classification
Any other comments?
#pariswimlds