It only works because Pipeline overloads get_params.
On 20 February 2015 at 09:17, Andy <t3k...@gmail.com> wrote:
>
> On 02/19/2015 12:58 PM, Gael Varoquaux wrote:
> > The question is: can we do this without breaking our pipeline delegation
> > mechanism that we use to set parameters during cross-validation in a
> > pipeline? I am not convinced that this is possible. Maybe a complex
> > mechanism overridding __getattr__, or in other ways the attribute lookup
> > in python, would do it, but that would be greater evil.
> All this is implemented in BaseEstimator.set_params, which is not
> overloaded in pipeline.
> Making it a function instead of a method should be as easy as replacing
> est.set_params(**params)
> by
> set_params(est, **params)
>
> Unless I'm pretty blind (which is possible)
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general