Python, Ridge Regression, Lasso Regression, Elastic Net, Regularization.
test; X, y = make_regression(n_samples=50000, n_features=8) y = y[:, np.newaxis] samples: 50000 features: 8 Lasso: parameters = { "l" : 0.1, "lr" : 0.1, "epoch" : 1000 } model = Lasso(**parameters) model.fit(X, y) y_pred = linear_reg.predict(X) score = r2_score(y, y_pred) print("r2 score", score)