Question 14
Consider the following code snippet using scikit-learn:
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(pipeline, param_grid, cv=5, scoring='accuracy')grid_search.fit(X_train, y_train)Assume that X_train and y_train are training feature matrix and label vector, respectively. Which of the following statements about the given code is correct?