Question 10
Consider the following code snippet using scikit-learn:
from sklearn.preprocessing import StandardScalerfrom sklearn.pipeline import Pipelinefrom sklearn.svm import SVCfrom sklearn.model_selection import GridSearchCV
pipeline = Pipeline([('scaler', StandardScaler()), ('classifier', SVC())])
param_grid = {'scaler__with_mean': [True, False], 'classifier__C': [0.1, 1, 10], 'classifier__kernel': ['linear', 'rbf'], 'classifier__gamma': [0.1, 1, 10]}
grid_search = GridSearchCV(estimator= pipeline, param_grid= param_grid, cv=5, scoring='accuracy', verbose=2)grid_search.fit(X_train, y_train)Assuming that X_train and y_train are given and the features are not sparse, which of the following statements about the given code is correct?