Machine Learning, Regression, Data Science.
y_pred = lasso_reg.predict(y_test) Elastic Net: Elastic net is a mixture of both ridge and lasso linear models as it is trained with both L1 and L2 norms of regularization of coefficients. We control the convex combination of ℓ1 and ℓ2 using the l1_ratio parameter or mix ratio of r. You can use