Skill 2.1.1
Configure experiment tracking with MLflow
Key Concepts
Every Azure Machine Learning workspace is an MLflow tracking server. Jobs that run in the workspace are tracked automatically, and code that runs elsewhere, such as on a laptop, points MLflow at the workspace by setting the tracking URI, which the azureml-mlflow package supports. A run belongs to an experiment, which groups related runs.
mlflow.autolog() logs parameters, metrics and the model for supported frameworks such as scikit-learn, XGBoost, LightGBM, PyTorch and TensorFlow. Explicit calls add what autologging misses: mlflow.log_param() for settings, mlflow.log_metric() for values, including per-epoch values with a step, and mlflow.log_artifact() for files such as plots. mlflow.set_tag() adds searchable labels such as the dataset version.