Explore Library
Code QuizIntermediate

Grid Search Parameter Grid

Passing scalar hyperparameter values to GridSearchCV instead of lists to search over.

Codepython
from sklearn.model_selection import GridSearchCV
from sklearn.svm import SVC

param_grid = {'C': 1, 'kernel': 'rbf'}
search = GridSearchCV(SVC(), param_grid, cv=5)
search.fit(X_train, y_train)

What is the bug in this grid search setup?