QuestionQ52

VerifiedAdvanced MLflow Usage

A data scientist uses MLflow to track a machine-learning experiment. During every MLflow run, they perform hyperparameter tuning. The data scientist wants a single parent run for the tuning process and a child run for every unique combination of hyperparameter values.

They are using this code block:

Question Image

The code block does not nest the MLflow runs as expected. Which change must the data scientist make to the code block so that the child runs are successfully nested under the parent run in MLflow?

Explanation

A nested MLflow run must be started while its parent run’s context is still active. Placing the child start_run(..., nested=True) blocks inside the parent with mlflow.start_run(...) block keeps the parent active and creates the required parent-child relationships. The parent run should remain non-nested.

Learn more

Community Discussion

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