QuestionQ30

VerifiedModel Development

A data scientist applies 3-fold cross-validation and the following hyperparameter grid while using grid search to optimize hyperparameters for a classification problem:

  • Hyperparameter 1: [2, 5, 10]
  • Hyperparameter 2: [50, 100]

Which option represents the number of machine learning models that can be trained in parallel in this process?

Explanation

The grid produces six hyperparameter combinations: three values for Hyperparameter 1 multiplied by two values for Hyperparameter 2. Each combination is evaluated on each of the three cross-validation folds, so there are 6 × 3 = 18 independent model-training fits. Grid-search tools evaluate every parameter combination on every data fold independently, allowing those fits to be parallelized.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!