-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
EHN make some meta-estimators lenient towards missing values #17987
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
EHN make some meta-estimators lenient towards missing values #17987
Conversation
as false in check array and check_X_y
I marked this PR as |
Do I have to add one more test for One more question, Is there any other meta estimator, which is not allowing |
It wouldn't hurt to test MultiOutputRegressor too. I think the point of the
issue is that none of the core developers knows what the status of our
support and testing of this property is. We would like a contributor to
review how well passing missing values (and ideally other things like
non-2d or non-array-like data) is supported, and that each case where it is
supported, this support is tested. Once that has all been verified, then we
will know :)
|
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! As @jnothman said, it would be great to do the same for MultiOutputRegressor
as part of the same PR while you are at it.
Status before this PR.
|
Excellent. Very informative! |
Tests here are failing, however. |
There are other meta-estimators, however, such as StackingClassifier, SelectFromModel, RFE, Pipeline, GridSearchCV, etc... |
I have not fixed for
Thank you for the pointers, I will check on these as well. |
Out of scope of this PR to not create a monster but I think that we need to introduce common tests for checking nan behaviour. |
@glemaitre , Currently I am manually checking through each one of them. I am checking for meta-estimators and wrappers and not covering the transformer |
So reviewing the code, we are repeating the same tests for all meta-estimators. So we could isolate this test and put it in Then, we need to call this test with the proper estimator. So with meta-estimator, we need to make sure that we pass a base estimator that has a pipeline with a |
And basically we should introduce this #9741 at the same time :) |
Yes we could move those |
Thanks, I will move the tests of voting and stacking meta estimators to |
Test are failing. Could you also add a comment on the test to indicate that we should remove them when we create a common test |
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
I'm not sure why the test are failing with Attribute error (rng.random). The tests are running fine in my end. |
|
doc/whats_new/v0.24.rst
Outdated
@@ -302,6 +302,22 @@ Changelog | |||
validity of the input is now delegated to the base estimator. | |||
:pr:`17233` by :user:`Zolisa Bleki <zoj613>`. | |||
|
|||
- |Enhancement| :class:`multiclass.OneVsOneClassifier` now accpets |
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.
Typo: accpets -> accepts
doc/whats_new/v0.24.rst
Outdated
.......................... | ||
|
||
- |Enhancement| :class:`multioutput.MultiOutputClassifier` and | ||
:class:`multioutput.MultiOutputRegressor` now accpets the inputs |
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.
Typo: accpets -> accepts
This is much neater. @venkyyuvy could you please resolve those nitpicks from @justmarkham, and resolve conflicts with master, so that we can merge. Thanks again!! |
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.
Only add 2 additional comments. LGTM otherwise (fixing what was pointed out earlier).
Thanks @venkyyuvy Let's merge this. It is super useful. |
…learn#17987) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Reference Issues/PRs: Fixes: #15319
What does this implement/fix? Explain your changes.
Any other comments?