-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MNT Replaced kwargs by named args for train_test_split #17216
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
MNT Replaced kwargs by named args for train_test_split #17216
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.
Thanks @hugolmn ! Looking at git blame https://github.com/scikit-learn/scikit-learn/blame/85d24b3cb5897ce4b864d9f229d8b9fcae8d5ce7/sklearn/model_selection/_split.py#L2075 I can't see any obvious reasons why it was done in such a convoluted way.
Looks good to me assuming CI passes.
Hmm, actually key word only argument don't seem to work with first |
This reverts commit 80ad8c9.
Thanks @hugolmn |
This is amazing! I have ran into this many times when using |
What does this implement/fix? Explain your changes.
By using **options in the argument list, named arguments where not immediately shown when pressing shift+tab in jupyter. I replaced it by using named arguments and their default values described in the docstring.