
Answer-first summary for fast verification
Answer: Specify `nested=True` when initiating the child run for each unique combination of hyperparameter values.
MLflow supports hierarchical run organization, allowing parent and child runs to be logically grouped. For hyperparameter tuning, specifying `nested=True` when starting each child run ensures it is correctly nested under the parent run. This method provides a clear structure for reviewing and comparing different hyperparameter combinations. - **Option A** is incorrect because Autologging does not organize runs hierarchically. - **Option B** is misleading as it lacks the `nested=True` parameter, which is essential for creating a parent-child relationship. - **Option D** is incorrect because using the same experiment ID does not establish a hierarchical relationship between runs. - **Option E** is incorrect because `nested=True` should be specified for child runs, not the parent run.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A data scientist is using MLflow to track a machine learning experiment, including hyperparameter tuning. They aim to organize the experiment with one parent run for the tuning process and child runs for each unique hyperparameter combination, all initiated manually with mlflow.start_run(). What is the best method to achieve this organization?
A
Enable Databricks Autologging to automatically organize the runs.
B
Start each child run within the indented code block of the parent run using mlflow.start_run() without any additional parameters.
C
Specify nested=True when initiating the child run for each unique combination of hyperparameter values.
D
Use the same experiment ID for both parent and child runs to group them together.
E
Specify nested=True when initiating the parent run for the tuning process.
No comments yet.