in your example with random data Lasso leads to coef_ of zeros so you get
as prediction : np.mean(Y[train])

you'll see the same phenomenon if you do:

pred = np.r_[pred, np.mean(Y[train])]

Alex
_______________________________________________
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn

Reply via email to