Skip to content

[MRG] FIX Allow to disable estimator and passing weight in Voting estimators - #13779

Merged
qinhanmin2014 merged 5 commits into
scikit-learn:masterfrom
glemaitre:is/13777
May 6, 2019
Merged

qinhanmin2014 merged 5 commits into
scikit-learn:masterfrom
glemaitre:is/13777

Conversation

@glemaitre

Copy link
Copy Markdown
Member

close #13777

This allows fitting with weights in Voting estimators even when one of then is set to None.

@glemaitre glemaitre changed the title FIX Allow to disable estimator and passing weight in Voting estimators [MRG] FIX Allow to disable estimator and passing weight in Voting estimators May 3, 2019

@jnothman jnothman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider squeezing into 0.21 if approved soon

Comment thread doc/whats_new/v0.22.rst Outdated
- |Fix| :class:`sklearn.ensemble.VotingClassifier` and
:class:`sklearn.ensemble.VotingRegressor` were failing during ``fit`` in one
- |Fix| :class:`ensemble.VotingClassifier` and
:class:`ensemble.VotingRegressor` were failing during ``fit`` in one

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In -> if

@qinhanmin2014

Copy link
Copy Markdown
Member

We could consider squeezing into 0.21 if approved soon

No strong opinion. It's not a regression, but not trivial IMO.

@jnothman

jnothman commented May 5, 2019 via email

Copy link
Copy Markdown
Member

@qinhanmin2014

Copy link
Copy Markdown
Member

We would include it in 0.21.0 because it creates consistency with the use
of "drop" and "passthrough" in other estimators with similar syntax. (And
because it does not introduce much risk by not having been part of a
pre-release)

+1, ping @glemaitre

@glemaitre

Copy link
Copy Markdown
Member Author

OK solving the merge problem then

@glemaitre

Copy link
Copy Markdown
Member Author

I moved in 0.21. We also need to merge #13780 regarding the introduction of 'drop'

@qinhanmin2014
qinhanmin2014 merged commit 8d3b4ff into scikit-learn:master May 6, 2019
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request May 6, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
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.

Voting estimator will fail at fit if weights are passed and an estimator is None

3 participants