Machine Learning, Linear Regression, Data Science, Artificial Intelligence.
them. I will leave that up to the reader! # Parameters for each method ridge_params = {'alpha': np.logspace(-4, 4, 100)} lasso_params = {'alpha': np.logspace(-4, 4, 100)} elastic_params = {'alpha': np.logspace(-4, 4, 100), 'l1_ratio': np.linspace(0.1, 0.9, 10)} Behind the scenes, scikit-learn will