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

Automatic add a fit_transform method to new transformers #924

Closed
mandel opened this issue Dec 17, 2021 · 1 comment
Closed

Automatic add a fit_transform method to new transformers #924

mandel opened this issue Dec 17, 2021 · 1 comment

Comments

@mandel
Copy link
Collaborator

mandel commented Dec 17, 2021

It could be nice if when we create a new operator with a fit and a transform method, the functionoperators.make_operator automatically adds a fit_transform method with the following implementation (it is already the case for get_params):

def fit_transform(self, X, y=None):
    scaler = self.fit(X, y)
    return scaler.transform(X)
@mandel
Copy link
Collaborator Author

mandel commented Oct 3, 2022

Closed by PR #1192

@mandel mandel closed this as completed Oct 3, 2022
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

No branches or pull requests

1 participant