Lasso Regression, Ridge Regression, L1 Regularization, L2 Regularization.
mean_squared_error(y_test, y_pred_lasso) mse_ridge = mean_squared_error(y_test, y_pred_ridge) # Print results print("Lasso Mean Squared Error:", mse_lasso) print("Ridge Mean Squared Error:", mse_ridge) X_train /= X_train.std(axis=0): Divides each column (feature) in the training set (X_train) by