Skip to content

FIX MultiOutputRegressor correctly ducktypes fitted estimators #19308

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

Conversation

thomasjpfan
Copy link
Member

Reference Issues/PRs

Fixes #16549

What does this implement/fix? Explain your changes.

Checks the fitted multioutput.estimators_ for predict.

@thomasjpfan thomasjpfan added this to the 0.24.2 milestone Jan 31, 2021
@thomasjpfan
Copy link
Member Author

Currently placing this on 0.24.2, but I am okay with holding it for 1.0 as well.

@alexottenwess-sp
Copy link

@thomasjpfan I'm also experiencing this issue with ClassifierChain as well, not just MultiOutputClassifier

@thomasjpfan
Copy link
Member Author

@alexottenwess-sp May you open an issue with a reproducible code example, so we can look into working out your issue with ClassifierChain?

@alexottenwess-sp
Copy link

@thomasjpfan see #19357

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

LGTM.

ogrisel and others added 2 commits April 7, 2021 14:45
@glemaitre glemaitre added To backport PR merged in master that need a backport to a release branch defined based on the milestone. and removed Waiting for Reviewer labels Apr 9, 2021
@glemaitre glemaitre self-requested a review April 9, 2021 16:33
@glemaitre glemaitre added the Bug label Apr 9, 2021
@glemaitre glemaitre merged commit da3c2d2 into scikit-learn:main Apr 9, 2021
@glemaitre
Copy link
Member

Thanks @thomasjpfan

thomasjpfan added a commit to thomasjpfan/scikit-learn that referenced this pull request Apr 19, 2021
…t-learn#19308)

Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
@glemaitre glemaitre mentioned this pull request Apr 22, 2021
12 tasks
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Apr 22, 2021
glemaitre pushed a commit that referenced this pull request Apr 28, 2021
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug To backport PR merged in master that need a backport to a release branch defined based on the milestone.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with predict function of MultiOutputRegressor when used with StackingRegressor
5 participants