Question 16
Given the following code snippet involving GridSearchCV for hyperparameter tuning of a LinearRegression model:
from sklearn.datasets import make_regressionfrom sklearn.linear_model import SGDRegressorfrom sklearn.model_selection import GridSearchCV
X, y = make_regression(n_samples=200, n_features=15, noise=0.5, random_state=24)
params = {'penalty': ['l1', 'l2'], 'max_iter': [500, 1000]}reg = GridSearchCV(estimator= SGDRegressor(), param_grid= params, scoring= 'neg_mean_squared_error', refit= True)reg.fit(X, y)Select all statements that are TRUE given this code snippet: