Skip to content

Commit a8b0187

Browse files
committed
blocking issues
1 parent 7669ed0 commit a8b0187

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

articles/machine-learning/how-to-use-mlflow-cli-runs.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: MLflow Tracking for ML experiments
2+
title: MLflow Tracking for ML experiments with CLI v2
33
titleSuffix: Azure Machine Learning
4-
description: Set up MLflow Tracking with Azure Machine Learning to log metrics and artifacts from ML models.
4+
description: Set up MLflow Tracking with Azure Machine Learning to log metrics and artifacts from ML models with the Azure Machine Learning CLI (v2)
55
services: machine-learning
66
author: abeomor
77
ms.author: osomorog
@@ -13,11 +13,11 @@ ms.topic: how-to
1313
ms.custom: devx-track-python
1414
---
1515

16-
# Track ML experiments and models with MLflow and Azure Machine Learning CLI v2 (preview)
16+
# Track ML experiments and models with MLflow and Azure Machine Learning CLI (v2) (preview)
1717

1818
[!INCLUDE [preview disclaimer](../../includes/machine-learning-preview-generic-disclaimer.md)]
1919

20-
In this article, learn how to enable MLflow's tracking URI and logging API, collectively known as [MLflow Tracking](https://mlflow.org/docs/latest/quickstart.html#using-the-tracking-api), to connect Azure Machine Learning as the backend of your MLflow experiments with the [Azure Machine Learning CLI v2](how-to-train-cli.md). You also learn how to use [MLflow's Model Registry](https://mlflow.org/docs/latest/model-registry.html) capabilities with Azure Machine Learning.
20+
In this article, learn how to enable MLflow's tracking URI and logging API, collectively known as [MLflow Tracking](https://mlflow.org/docs/latest/quickstart.html#using-the-tracking-api), to connect Azure Machine Learning as the backend of your MLflow experiments with the [Azure Machine Learning CLI (v2)](how-to-train-cli.md). You also learn how to use [MLflow's Model Registry](https://mlflow.org/docs/latest/model-registry.html) capabilities with Azure Machine Learning.
2121

2222
[MLflow](https://www.mlflow.org) is an open-source library for managing the lifecycle of your machine learning experiments. MLFlow Tracking is a component of MLflow that logs and tracks your training run metrics and model artifacts, no matter your experiment's environment--locally on your computer, on a remote compute target, a virtual machine, or an [Azure Databricks cluster](how-to-use-mlflow-azure-databricks.md).
2323

@@ -37,7 +37,7 @@ See [MLflow and Azure Machine Learning](concept-mlflow.md) for all supported MLf
3737
* [Create an Azure Machine Learning Workspace](how-to-manage-workspace.md).
3838
* See which [access permissions you need to perform your MLflow operations with your workspace](how-to-assign-roles.md#mlflow-operations).
3939

40-
* Install and [set up CLI (v2)](https://docs.microsoft.com/azure/machine-learning/how-to-configure-cli).
40+
* Install and [set up CLI (v2)](how-to-configure-cli.md#prerequisites).
4141

4242
## Track runs from your local machine
4343

@@ -49,13 +49,13 @@ First, you need to point your local machine to the Azure Machine Learning MLFlow
4949

5050
This can be done in a couple ways. You can import the `mlflow` and [`subprocess`](https://docs.python.org/3/library/subprocess.html) classes to access MLflow's tracking URI.
5151

52-
The following code, uses the subprocess class in Python to run the Azure Machine Learning CLI v2 command to retrieve the unique MLFLow tracking URI associated with your workspace, and [`set_tracking_uri()`](https://mlflow.org/docs/latest/python_api/mlflow.html#mlflow.set_tracking_uri) points the MLflow tracking URI to that URI.
52+
The following code, uses the subprocess class in Python to run the Azure Machine Learning CLI (v2) command to retrieve the unique MLFLow tracking URI associated with your workspace, and [`set_tracking_uri()`](https://mlflow.org/docs/latest/python_api/mlflow.html#mlflow.set_tracking_uri) points the MLflow tracking URI to that URI.
5353

5454
```Python
5555
import mlflow
5656
import subprocess
5757

58-
#Get MLFLow UI through the Azure ML CLI v2 and convert to string
58+
#Get MLFLow UI through the Azure ML CLI (v2) and convert to string
5959
MLFLOW_TRACKING_URI = subprocess.run(["az", "ml", "workspace", "show", "--query", "mlflow_tracking_uri", "-o", "tsv"], stdout=subprocess.PIPE, text=True)
6060
MLFLOW_TRACKING_URI = str(MLFLOW_TRACKING_URI.stdout).strip()
6161
```
@@ -109,7 +109,7 @@ with mlflow.start_run() as mlflow_run:
109109
mlflow.log_artifact("helloworld.txt")
110110
```
111111

112-
## Track remote runs with Azure Machine Learning v2 CLI (preview)
112+
## Track remote runs with Azure Machine Learning CLI (v2) (preview)
113113

114114
Remote runs (jobs) let you train your models on more powerful computes, such as GPU enabled virtual machines, or Machine Learning Compute clusters. See [Use compute targets for model training](how-to-set-up-training-targets.md) to learn about different compute options.
115115

@@ -142,7 +142,7 @@ if __name__ == "__main__":
142142
main()
143143
```
144144

145-
Use the [Azure Machine Learning CLI v2](how-to-train-cli.md) to submit a run. When using the Azure Machine Learning CLI v2, the MLflow tracking URI and experiment name is set automatically and directs the logging from MLflow to your Workspace. Learn more about [logging Azure Machine Learning CLI v2 experiments with MLflow](how-to-train-cli.md##model-tracking-with-mlflow)
145+
Use the [Azure Machine Learning CLI (v2)](how-to-train-cli.md) to submit a run. When using the Azure Machine Learning CLI (v2), the MLflow tracking URI and experiment name is set automatically and directs the logging from MLflow to your Workspace. Learn more about [logging Azure Machine Learning CLI (v2) experiments with MLflow](how-to-train-cli.md#model-tracking-with-mlflow)
146146

147147
Create a YAML file with your job definition in a `job.yml` file. This file should be created outside the `src` directory. Copy this code into the file:
148148

@@ -248,7 +248,7 @@ To register and view a model from a run, use the following steps:
248248
## Example notebooks
249249

250250
A community-driven repository of examples using mlflow can be found at https://github.com/Azure/azureml-examples.
251-
* [Using MLFlow and CLI v2](https://github.com/Azure/azureml-examples/blob/main/cli/jobs/basics/hello-mlflow.yml)
251+
* [Using MLFlow and CLI (v2)](https://github.com/Azure/azureml-examples/blob/main/cli/jobs/basics/hello-mlflow.yml)
252252

253253
## Next steps
254254

0 commit comments

Comments
 (0)