-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
FIX #11215 : Changing return in docstring to yields for generator functions #11276
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
sklearn/model_selection/_split.py
Outdated
@@ -76,7 +76,7 @@ def split(self, X, y=None, groups=None): | |||
Group labels for the samples used while splitting the dataset into | |||
train/test set. | |||
|
|||
Returns | |||
Yields | |||
------- |
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 need to remove the last -
to match the section length.
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.
👍
Two more changes are missing @Andrew-peng
see line numbers - there should be 9 sections changed, this PR only includes 7. Otherwise LGTM, thanks. |
Just added, missed those |
LGTM, thanks! |
Thank you, @Andrew-peng ! |
…enerator functions (scikit-learn#11276)
Reference Issues/PRs
Fixes #11215.
What does this implement/fix? Explain your changes.
I changed all the docstrings for generator functions to say
Yields
insteadReturns
.Any other comments?
First OSS contribution :) 🥇