Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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

Merged
merged 5 commits into from
May 6, 2019

Conversation

glemaitre
Copy link
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
Copy link
Member

@jnothman jnothman left a comment

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

- |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
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
Member

We could consider squeezing into 0.21 if approved soon

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

@jnothman
Copy link
Member

jnothman commented May 5, 2019 via email

@qinhanmin2014
Copy link
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
Member Author

OK solving the merge problem then

@glemaitre
Copy link
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