I guess either fit_transform or just transform, because fit_transform is not 
mandatory isn’t it ?

For instance, I did not implement fit_transform, and did not get complains

From: Joel Nothman [mailto:joel.noth...@gmail.com]
Sent: Thursday, February 26, 2015 9:34 PM
To: scikit-learn-general
Subject: Re: [Scikit-learn-general] how does sklearn apply pipelines

And when some function f (such as predict) other than fit is called on the 
pipeline, it invokes transform on all the steps but the last, and on the last 
step calls f with the transformed data.

On 27 February 2015 at 13:31, Sebastian Raschka 
<se.rasc...@gmail.com<mailto:se.rasc...@gmail.com>> wrote:
It's actually quite simple: It invokes fit_transform on all elements in a 
pipeline but the last. On the last element in the pipeline (the estimator) only 
fit is invoked.

Best,
Sebastian

> On Feb 26, 2015, at 9:01 PM, Pagliari, Roberto 
> <rpagli...@appcomsci.com<mailto:rpagli...@appcomsci.com>> wrote:
>
> Given a pipeline with a certain number of transformers and a classifier, how 
> does sklearn know which method should be invoked from one step to another? 
> Does it list the available methods for each object?
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. 
> http://goparallel.sourceforge.net/_______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net<mailto:Scikit-learn-general@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net<mailto:Scikit-learn-general@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to