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
gen_features failing with SimpleImputer on bool column #176
Comments
@david-waterworth It could be a bug. The package is not tested on |
Ah right, no worries. I guess I'll have to either put up with the deprecation warnings or downgrade sklearn
Edit: I think I've misunderstood how to pass non-default constructor arguments to the DataFrameMapper classes. I think it should be:
Which fails in the same way as my original feature_def So it's probably not a bug in feature_def, more likely a change in behaviour in |
Following code doesn't work for me:
However, if I remove the last column from "x" the imputer object works just fine.
|
@monikamulani does your issue have something to do with the original post? |
@david-waterworth , can you provide the deprecation warning and the full traceback of the error you receive? This will make debugging easier. |
@dukebody sure, I'm travelling for the next few weeks but once I'm back I'll update. |
@dukebody deprecation message is as follows
|
@dukebody and the full traceback is
|
from
the dtypes of the toy data in the README.rst example are:
therefore, if you change the |
Hi
I'm working through the the https://github.com/scikit-learn-contrib/sklearn-pandas/blob/master/README.rst.
I'm getting a deprecation warning on this code
So I replaced it with
But this fails with
So I replaced gen_features with an explicit DataFrameMapper and it works
As far as I can see the explicit DataFrameMapper should be the same as the one built by ataFrameMapper(feature_def). Have I done something wrong or is the a bug in gen_features?
The text was updated successfully, but these errors were encountered: