QuestionQ140

VerifiedAdvanced MLflow Usage

A Data Scientist is developing multiple machine-learning models for time-series forecasting in Databricks and uses MLflow for experiment tracking. For every model run, they need to log:

  • The window size and learning rate used during training
  • The model's RMSE on a test set
  • A PNG plot that compares actual and predicted values

Which implementation using MLflow's tracking API supports this use case?

Explanation

MLflow records training hyperparameters with mlflow.log_param(), numeric performance results such as RMSE with mlflow.log_metric(), and files such as PNG plots with mlflow.log_artifact(). Using mlflow.start_run() as a context manager associates these records with the same run.

Learn more

Community Discussion

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