Closed DZIMDZEM closed 1 year ago
I think this was fixed by #398
Could you please confirm this? So if you check the current master branch the get_feature_names_out
function already supports the input_features
argument. I haven't built a release for this bugfix yet though, so if you install form pypi you should still experience this problem.
I can build a release this week though if it solves your problem
@PaulWestenthanner , yes, it resolves the problem. Thank you for the fast response!
Version 2.6.1 is published on pypi now
Expected Behavior
In
BaseEncoder
,get_feature_names_out()
should accept more than 1 argument as in other sklearn base estimators.Actual Behavior
BaseEncoder
'sget_feature_names_out()
accepts only 1 argument: self. It makes it incompatible witheli5
module and other modules that work with feature names when you usesklearn
modules.Steps to Reproduce the Problem
input_features
keyword argument toget_feature_names_out
._check_feature_names_in
method fromsklearn.utils.validation
soget_feature_names_out
has the same implementation assklearn.base.BaseEstimator
As a temporary solution you can just override the method. Example for
TargetEncoder
:Specifications