Databricks Certified Machine Learning Associate — Question 40

A data scientist uses 3-fold cross-validation and the following hyperparameter grid when optimizing model hyperparameters via grid search for a classification problem:
Hyperparameter 1: [2, 5, 10]
Hyperparameter 2: [50, 100]
Which of the following represents the number of machine learning models that can be trained in parallel during this process?

Answer options

Correct answer: D

Explanation

The total number of models trained is calculated by multiplying the number of options for each hyperparameter and the number of folds in cross-validation. Here, there are 3 options for Hyperparameter 1 and 2 options for Hyperparameter 2, resulting in 3 * 2 = 6 combinations, and with 3-fold cross-validation, the total becomes 6 * 3 = 18. Other options do not reflect the correct calculation of combinations and folds.