-
Notifications
You must be signed in to change notification settings - Fork 121
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
get_feature_names_out
for EstimatorTransformer
#539
get_feature_names_out
for EstimatorTransformer
#539
Conversation
Co-authored-by: MBrouns <[email protected]>
Co-authored-by: MBrouns <[email protected]>
get_feature_names_out
for Meta estimatorsget_feature_names_out
for EstimatorTransformer
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.
I left a minor nitpick tho.
Hey, yes this feature is ready and meant to be reviewed. I'll make sure to add [WIP] if something would be still work in progress As for the commits there are some commits here that are already merged to scikit-lego from a previous PR, but somehow it still shows when I create a new local branch. Everything up to commit #f06a7af is duplicate. Do you know how we can clean up the commit history? Otherwise I think we are ready to merge! Fixed the minor nitpicks. |
@koaning, shall we go ahead and merge this one to |
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.
Found two nitpicks worth discussing. Sorry for the delay!
This PR adds
get_feature_names_out
functionality forEstimatorTransformer
. This is a desirable method forEstimatorTransformer
because its output is used as input for a subsequent estimator.get_feature_names_out
forEstimatorTransformer
.get_feature_names_out
works with aFeatureUnion
component.get_feature_names_out
implementation is necessary and desired for other Meta estimators.@koaning I think it is not necessary to implement
get_feature_names_out
for the other estimators insklego.meta
, because it seems all these estimators are used as the last component in aPipeline
, except forEstimatorTransformer
.EstimatorTransformer
will often be a component somewhere in the middle of aPipeline
and thereforeget_feature_names_out
is desirable. That said I'm happy to work on other implementations ofget_feature_names_out
insklego.meta
if you disagree with this reasoning.Solves Issue #533