-
Notifications
You must be signed in to change notification settings - Fork 118
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
[BUG] 'EstimatorTransformer' object has no attribute 'get_feature_names_out' #533
Comments
Minor ask: you can attach a language to a code-block to get syntax highlighting. Like so:
That said. Mhm ... I'm wondering what other meta estimators will have the same issue. @CarloLepelaars I did have a quick look at the VotingClassifier in sklearn and it seems that also in sklearn not every Meta estimator has I'm also curious if scikit-learn has tests for this behavior that we can copy. @CarloLepelaars did you check the sklearn repo for this by any chance? |
Makes sense! Added syntax highlighting in comment above. 🤔 Interesting! Seems odd that it is implemented for Here is an example of a |
@koaning, shall I go ahead and implement this for |
Yes please! |
When calling
get_feature_names_out
onEstimatorTransformer
or aPipeline
that containsEstimatorTransformer
you will get the following error:AttributeError: 'EstimatorTransformer' object has no attribute 'get_feature_names_out'
Minimal reproducible example:
I thought this issue was resolved in
scikit-learn >= 1.1
(get_feature_names_out Available in all Transformers release highlight), but apparently a manual implementation ofget_feature_names_out
is still needed for custom scikit-learn transformers.Proposed solution sketch:
Happy to contribute this if you agree with the proposed solution idea. If this a general problem I'm also open to work on implementing
get_feature_names_out
for other transformers inscikit-lego
.The text was updated successfully, but these errors were encountered: