Python, Ridge Regression, Lasso Regression, Elastic Net, Regularization.
0.9999957854125746 Sklearn Lasso: from sklearn.linear_model import Lasso from sklearn.metrics import r2_score parameters = {'alpha': 0.1, 'tol': 0.1 } model = Lasso(**parameters) model.fit(X, y) y_pred = model.predict(X) score = r2_score(y, y_pred) print("R2 {}".format(score)) #OUT: R2