Question 38
Go through the code snippet given below and answer the given subquestions.
from sklearn.preprocessing import PolynomialFeaturesfrom sklearn.pipeline import Pipelinefrom sklearn.preprocessing import StandardScalerfrom sklearn.linear_model import RidgeCVfrom sklearn.datasets import load_diabetesdataset = load_diabetes(as_frame=True)X=dataset.datay=dataset.target
lf= np.arange(0.01, 1, 0.03)
ridge_reg_pipeline = Pipeline([("poly", PolynomialFeatures(degree=2)), ("feature_scaling", StandardScaler()) ])
ridge= RidgeCV(alphas=lf,scoring="neg_mean_squared_error")results = ridge.fit(X,y)Which of the following could be the possible output of print(results.best_score_)?
1
-3000.38
0.528
0.681