QuestionQ15

VerifiedAdvanced MLflow Usage

A Data Scientist is training machine-learning models in a notebook and must track varying parameters, a key performance metric named team_metric, and a summary graphic using MLflow. They find that tracking is not working as expected and review their logging code. For the logging portion of their code, they have:

Question Image

Why is the code not logging according to their requirements?

Explanation

MLflow uses mlflow.log_params() for parameters and mlflow.log_metrics() for performance metrics. Logging metrics_dict with log_params() records team_metric as a parameter, so it does not appear as a metric in the MLflow UI Metrics tab. mlflow.log_artifact() can log an individual file, including an image.

Learn more

Community Discussion

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