Skip to content
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

[MRG+1] Remove redundant assignment of parameter in _split.py #6349

Conversation

yenchenlin
Copy link
Contributor

In _BaseKFold,
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/model_selection/_split.py#L286
already set self.shuffle = shuffle.

However, KFold and StratifiedKFold, whose base class are _BaseKFold, reassign it again in their __init__, which seems redundant.

@yenchenlin yenchenlin changed the title Remove redundant assignment of parameter shuffle [MRG] Remove redundant assignment of parameter shuffle Feb 13, 2016
@yenchenlin yenchenlin changed the title [MRG] Remove redundant assignment of parameter shuffle [MRG] Remove redundant assignment of parameter in _split.py Feb 18, 2016
@TomDLT
Copy link
Member

TomDLT commented Feb 18, 2016

+1

@yenchenlin yenchenlin changed the title [MRG] Remove redundant assignment of parameter in _split.py [MRG+1] Remove redundant assignment of parameter in _split.py Feb 18, 2016
@GaelVaroquaux
Copy link
Member

LGTM. Thank you. Merging.

GaelVaroquaux added a commit that referenced this pull request Feb 19, 2016
…-assignment

[MRG+1] Remove redundant assignment of parameter in _split.py
@GaelVaroquaux GaelVaroquaux merged commit 4a5a7e1 into scikit-learn:master Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants