Databricks Certified Machine Learning Professional — Question 40
A machine learning engineer is converting a Hyperopt-based hyperparameter tuning process from manual MLflow logging to MLflow Autologging. They are trying to determine how to manage nested Hyperopt runs with MLflow Autologging.
Which of the following approaches will create a single parent run for the process and a child run for each unique combination of hyperparameter values when using Hyperopt and MLflow Autologging?
Answer options
- A. Starting a manual parent run before calling fmin
- B. Ensuring that a built-in model flavor is used for the model logging
- C. Starting a manual child run within the objective_function
- D. There is no way to accomplish nested runs with MLflow Autologging and Hyperopt
- E. MLflow Autologging will automatically accomplish this task with Hyperopt
Correct answer: A
Explanation
The correct answer is A because starting a manual parent run creates a structure that allows for the tracking of child runs for each hyperparameter combination. Option B does not address the organization of runs, while option C incorrectly suggests placing child runs inside an objective function, which would not create a proper parent-child relationship. Option D is incorrect as it ignores the functionality of MLflow Autologging, and option E misrepresents the need for a manual parent run.