[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 -

[scikit-learn] Question about get_params / set_params

2018-10-28 Thread Louis Abraham via scikit-learn
Hi, According to http://scikit-learn.org/0.16/developers/index.html#get-params-and-set-params , get_params and set_params are used to clone estimators. However, I don't understand how it is used in FeatureUnion: `retur