Use the functiontransformer and create a function which make your transform using lasso
If you want to use lasso for feature selection in a pipeline you have to
wrap it in SelectFromModel.
On 09/06/2017 11:56 AM, Lefevre, Augustin wrote:
Hi all,
I am playing with the pipeline features of sklearn and it seems that I
can’t use a prediction algorithm as intermediate step.
For i
Hi all,
I am playing with the pipeline features of sklearn and it seems that I can't
use a prediction algorithm as intermediate step.
For instance, in the example below I use the output of a lasso as an additional
feature to feed a random forest, in such a way that feature selection the Lasso
d