documentation for random_state in model_selection/split#15575
documentation for random_state in model_selection/split#15575glemaitre merged 13 commits intoscikit-learn:masterfrom
Conversation
|
Dear @edwardcqian , sorry, this PR went probably lost during the 0.22 release process. |
|
Thanks for the PR @edwardcqian, it looks good. On top of @cmarmo 's comments, please add something like :
for every docstring. |
|
Thanks @edwardcqian! Could you please sync with master, as there are some conflicts to manage. |
|
Also please address #15575 (comment) |
ab3490d to
c6d178e
Compare
NicolasHug
left a comment
There was a problem hiding this comment.
nevermind, it looks like it was addressed in another PR.
Last comment and LGMT
|
@edwardcqian in the meanwhile some conflicts arised: could you please sync with master? Then maybe @glemaitre could finalize his review? Thanks to both of you! |
sklearn/model_selection/_split.py
Outdated
| Passes `random_state` to the arbitrary repeating cross validator. Pass | ||
| an int for reproducible output across multiple function calls. |
sklearn/model_selection/_split.py
Outdated
| Random state used to control the randomness of each repeated | ||
| cross-validation instance. |
There was a problem hiding this comment.
Controls the randomness of each repeated cross-validation instance.
sklearn/model_selection/_split.py
Outdated
| random_state : int or RandomState instance, default=None | ||
| Pass an int for reproducible output across multiple | ||
| function calls. | ||
| Random state to be used to generate random state for each repetition. |
There was a problem hiding this comment.
"Controls the generation of the random states for each repetition."
|
@edwardcqian I pushed a couple of fixes and merged. Thanks for your contribution |
Reference Issues/PRs
part of this issue: #15222
What does this implement/fix? Explain your changes.
This PR improves the documentation for
KFold,StratifiedKFold,_RepeatedSplits,RepeatedKFold,RepeatedStratifiedKFold,ShuffleSplit,GroupShuffleSplit,StratifiedShuffleSplit, andtrain_test_splitby identifying the effects of randomness. Only thesklearn/model_selection/_split.pyfile was changed.