Skip to content
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

Closed
wants to merge 32 commits into from
Closed

get_feature_names_out for EstimatorTransformer #539

wants to merge 32 commits into from

Conversation

CarloLepelaars
Copy link
Contributor

@CarloLepelaars CarloLepelaars commented Sep 27, 2022

This PR adds get_feature_names_out functionality for EstimatorTransformer. This is a desirable method for EstimatorTransformer because its output is used as input for a subsequent estimator.

  • Implement get_feature_names_out for EstimatorTransformer.
  • Write core tests for implementation.
  • Create tests to ensure get_feature_names_out works with a FeatureUnion component.
  • Research if 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 in sklego.meta, because it seems all these estimators are used as the last component in a Pipeline, except for EstimatorTransformer. EstimatorTransformer will often be a component somewhere in the middle of a Pipeline and therefore get_feature_names_out is desirable. That said I'm happy to work on other implementations of get_feature_names_out in sklego.meta if you disagree with this reasoning.

Solves Issue #533

CarloLepelaars and others added 22 commits September 12, 2022 13:29
@CarloLepelaars CarloLepelaars changed the title [WIP] get_feature_names_out for Meta estimators get_feature_names_out for EstimatorTransformer Sep 27, 2022
Copy link
Owner

@koaning koaning left a 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.

@CarloLepelaars
Copy link
Contributor Author

CarloLepelaars commented Oct 6, 2022

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.

@CarloLepelaars
Copy link
Contributor Author

@koaning, shall we go ahead and merge this one to main?

Copy link
Owner

@koaning koaning left a 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!

@CarloLepelaars CarloLepelaars deleted the feature/meta-feature-names-out branch April 30, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants