10 questions, one from each category

No account needed. Pick an answer, then press the ? on the correct one for the deep dive.

Question 1 of 10 · This run: 0/0 correct
Probability & MathCombinatoricsHyperparameter Tuningmedium

How many times is an SVC model fitted in total when this grid search runs?

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

param_grid = [
    {"kernel": ["linear"], "C": [0.1, 1, 10]},
    {"kernel": ["rbf"], "C": [0.1, 1, 10], "gamma": [0.01, 0.1]},
]
search = GridSearchCV(SVC(), param_grid, cv=5)   # refit=True is the default
search.fit(X_train, y_train)