Re: [scikit-learn] Strange code but that works

2018-10-28 Thread Joel Nothman
Be careful: that @property is very significant here. It means that this is a description of how to *get* the method, not how to *run* the method. You will notice, for instance, that it says `def transform(self)`, not `def transform(self, X)` ___ scikit-le

Re: [scikit-learn] Strange code but that works

2018-10-28 Thread Guillaume LemaƮtre
On Sun, 28 Oct 2018 at 07:42, Louis Abraham via scikit-learn < scikit-learn@python.org> wrote: > Hi, > > This is a code from sklearn.pipeline.Pipeline: > @property > def transform(self): > """Apply transforms, and transform with the final estimator > > This also works where final estimator is ``No

[scikit-learn] Strange code but that works

2018-10-27 Thread Louis Abraham via scikit-learn
Hi, This is a code from sklearn.pipeline.Pipeline: @property def transform(self): """Apply transforms, and transform with the final estimator This also works where final estimator is ``None``: all prior transformations are applied. Parameters -