Question 29
Consider the following code snippet using scikit-learn:
sgd_regressor = SGDRegressor()
param_dist = { 'loss': ['squared_loss', 'huber', 'epsilon_insensitive'], 'alpha': loguniform(1e-4, 1e0), 'penalty': ['l1', 'l2', 'elasticnet'], 'epsilon': loguniform(1e-4, 1e-1),}
random_search = RandomizedSearchCV(sgd_regressor, param_distributions=param_dist, n_iter=10, cv=3, scoring='neg_mean_squared_error')random_search.fit(X, y)Assume all the necessary imports and to be the training dataset. Which of the following statements about the given code are correct?