8000 Pipeline with unfit and fit transformers · Issue #17375 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
< BF2F div class="clearfix new-discussion-timeline js-check-all-container container-xl px-3 px-md-4 px-lg-5 mt-4" data-pjax="" data-turbo-frame="">

Pipeline with unfit and fit transformers #17375

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

Closed
emilfilipov opened this issue May 28, 2020 · 1 comment
Closed

Pipeline with unfit and fit transformers #17375

emilfilipov opened this issue May 28, 2020 · 1 comment

Comments

@emilfilipov
Copy link

I couldn't find any examples of this anywhere so here goes.

What I have in mind is this:
I have an already fit custom transformer and i want to use it in a pipeline with a model that is not fit to the transformed data yet.

The goal is to keep the old fit transformer without refiting it to the new data and only fit the model, all combined in a Pipeline().
Currently, if I try to do that I get and error that the model has to be fit first.

The only alternative i can think of is transforming the data, training the model with it and then combining them into a Pipeline(). Or creating the Pipeline() and then fitting them step by step.

@glemaitre
Copy link
Member

I am closing this because it is a duplicate to #8370
You are trying to freeze some estimators to disallow refitting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0