
Answer-first summary for fast verification
Answer: 12 models
In a grid search with cross-validation, each combination of hyperparameters is evaluated using cross-validation. In this case, there are 3 possible values for 'C' and 2 possible values for 'kernel', resulting in a total of 3 * 2 = 6 combinations of hyperparameters. If 5-fold cross-validation is used, each of these 6 combinations will be trained and validated 5 times. So, a total of 6 * 5 = 30 models will be trained during the grid search and cross-validation process.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are working on a binary classification problem and have trained a model using a grid search with cross-validation. The grid search is searching over two hyperparameters, 'C' and 'kernel', with 'C' having 3 possible values and 'kernel' having 2 possible values. How many models will be trained during the grid search and cross-validation process?
A
3 models
B
4 models
C
6 models
D
12 models
No comments yet.