[scikit-learn] Use of Scaler with LassoCV, RidgeCV
Brenet, Yoann
yoann.brenet at se1.bp.com
Tue Sep 13 08:16:02 EDT 2016
Hi all,
I was trying to use scikit-learn LassoCV/RidgeCV while applying a 'StandardScaler' on each fold set. I do not want to apply the scaler before the cross-validation to avoid leakage but I cannot figure out how I am supposed to do that with LassoCV/RidgeCV.
Is there a way to do this ? Or should I create a pipeline with Lasso/Ridge and 'manually' search for the hyper-parameters (using GridSearchCV for instance) ?
Many thanks.
Yoann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20160913/7038061c/attachment.html>
More information about the scikit-learn
mailing list