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
Remove SimpleImputer DeprecationWarning #1018
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1018 +/- ##
==========================================
+ Coverage 99.86% 99.90% +0.04%
==========================================
Files 181 181
Lines 9628 9631 +3
==========================================
+ Hits 9615 9622 +7
+ Misses 13 9 -4
Continue to review full report at Codecov.
|
@@ -55,10 +52,7 @@ def fit_transform(self, X, y=None): | |||
else: | |||
self.input_feature_names = range(X.shape[1]) | |||
|
|||
try: |
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.
Removing because these lines are not covered by codecov, and our implementation override of Transformer
's fit_transform
/transform
should mean that we're not checking this here... alternatively I could add in a fake mocked feature selector and add tests?
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.
This doesn't have anything to do with the SimpleImputer
though right?
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.
@freddyaboulton Nope, but removing the warning lines decreased the total number of lines and hence decreased the overall codecov, causing codecov to fail :(
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.
@angela97lin is it possible to do this change in a separate PR? Its not required to remove the deprecation warning, right?
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.
If you needed to remove this in order to get codecov green, I'd say let's either add a couple quick unit tests for these cases, or ignore codecov and handle this separately.
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.
@angela97lin Looks good to me!
@@ -55,10 +52,7 @@ def fit_transform(self, X, y=None): | |||
else: | |||
self.input_feature_names = range(X.shape[1]) | |||
|
|||
try: |
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.
This doesn't have anything to do with the SimpleImputer
though right?
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.
Looks good to me, pending resolution of discussion about the changes in feature_selector.py
-- which I think we shouldn't handle in this PR
@@ -55,10 +52,7 @@ def fit_transform(self, X, y=None): | |||
else: | |||
self.input_feature_names = range(X.shape[1]) | |||
|
|||
try: |
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.
@angela97lin is it possible to do this change in a separate PR? Its not required to remove the deprecation warning, right?
@@ -55,10 +52,7 @@ def fit_transform(self, X, y=None): | |||
else: | |||
self.input_feature_names = range(X.shape[1]) | |||
|
|||
try: |
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.
If you needed to remove this in order to get codecov green, I'd say let's either add a couple quick unit tests for these cases, or ignore codecov and handle this separately.
Closes #999
After discussion with @dsherry, we decided that it was fine to keep the
SimpleImputer
in place, even if we've updated the . ThePerColumnImputer
currently uses theSimpleImputer
in its implementation, and updating it to use our newImputer
would make the API more hairy to use. This PR will now simply remove the DeprecationWarning added in v0.12.0.