-
-
Notifications
You must be signed in to change notification settings - Fork 25.4k
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
MAINT use Voting and Stacking support missing values #27710
MAINT use Voting and Stacking support missing values #27710
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @glemaitre
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @glemaitre
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
def _more_tags(self): | ||
try: | ||
allow_nan = all( | ||
_safe_tags(est[1])["allow_nan"] if est[1] != "drop" else True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree this is better than main
. Unfortunately, our tag system for allowing nans do not work with pipelines.
REF: #27903
While working on #27709, it appears that using
DecisionTree
in common tests would be better because:By changing the common tests, I came across an error regarding the
allow_nan
tag for both theVoting
andStacking
estimators.This PR makes 2 changes:
allow_nan
tags forVoting
andStacking
estimators