Skip to content

Commit adbe505

Browse files
committed
see if it builds
1 parent 3bafd34 commit adbe505

File tree

2 files changed

+33
-41
lines changed

2 files changed

+33
-41
lines changed

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

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,63 +7,55 @@ ms.author: mopeakande
77
ms.reviewer: fasantia
88
ms.service: azure-machine-learning
99
ms.subservice: mlops
10-
ms.date: 02/15/2024
10+
ms.date: 09/25/2024
1111
ms.topic: how-to
12-
ms.custom: mlflow, devx-track-azurecli, cliv2, devplatv2, update-code
12+
ms.custom: mlflow, devx-track-azurecli, cliv2, devplatv2, update-code, FY25Q1-Linter
1313
ms.devlang: azurecli
14+
#Customer intent: As a data scientist, I want to know how to track my machine learning experiments and models with MLflow so I can understand what MLflow is and does so that I can use MLflow with my models.
1415
---
1516

1617
# Track ML experiments and models with MLflow
1718

18-
19-
In this article, you learn how to use MLflow for tracking your experiments and runs in Azure Machine Learning workspaces.
20-
21-
_Tracking_ is the process of saving relevant information about experiments that you run. The saved information (metadata) varies based on your project, and it can include:
19+
In this article, you learn how to use MLflow for tracking experiments and runs in Azure Machine Learning workspaces. *Tracking* is the process of saving relevant information about experiments. The saved metadata varies by experiment, and can include:
2220

2321
- Code
24-
- Environment details (such as OS version, Python packages)
22+
- Environment details such as OS version and Python packages
2523
- Input data
2624
- Parameter configurations
2725
- Models
2826
- Evaluation metrics
29-
- Evaluation visualizations (such as confusion matrices, importance plots)
30-
- Evaluation results (including some evaluation predictions)
31-
32-
When you're working with jobs in Azure Machine Learning, Azure Machine Learning automatically tracks some information about your experiments, such as code, environment, and input and output data. However, for others like models, parameters, and metrics, the model builder needs to configure their tracking, as they're specific to the particular scenario.
33-
34-
> [!NOTE]
35-
> If you want to track experiments that are running on Azure Databricks, see [Track Azure Databricks ML experiments with MLflow and Azure Machine Learning](how-to-use-mlflow-azure-databricks.md). To learn about tracking experiments that are running on Azure Synapse Analytics, see [Track Azure Synapse Analytics ML experiments with MLflow and Azure Machine Learning](how-to-use-mlflow-azure-synapse.md).
27+
- Evaluation visualizations such as confusion matrices and importance plots
28+
- Evaluation results, including some evaluation predictions
3629

37-
## Benefits of tracking experiments
30+
When you work with jobs, Azure Machine Learning automatically tracks some information about experiments, such as code, environment, and input and output data. However, models, parameters, and metrics are specific to the scenario, so model builders must configure their tracking.
3831

39-
We strongly recommend that machine learning practitioners track experiments, whether you're training with jobs in Azure Machine Learning or training interactively in notebooks. Experiment tracking allows you to:
32+
Whether you train with jobs in Azure Machine Learning or interactively in notebooks, experiment tracking helps you:
4033

41-
- Organize all of your machine learning experiments in a single place. You can then search and filter experiments and drill down to see details about the experiments you ran before.
42-
- Compare experiments, analyze results, and debug model training with little extra work.
34+
- Organize all of your machine learning experiments in a single place. You can then search and filter experiments and drill down to see details about previous experiments.
35+
- Easily compare experiments, analyze results, and debug model training.
4336
- Reproduce or rerun experiments to validate results.
44-
- Improve collaboration, since you can see what other teammates are doing, share experiment results, and access experiment data programmatically.
37+
- Improve collaboration, because you can see what other teammates are doing, share experiment results, and access experiment data programmatically.
4538

46-
## Why use MLflow for tracking experiments?
47-
48-
Azure Machine Learning workspaces are MLflow-compatible, which means you can use MLflow to track runs, metrics, parameters, and artifacts within your Azure Machine Learning workspaces. A major advantage of using MLflow for tracking is that you don't need to change your training routines to work with Azure Machine Learning or inject any cloud-specific syntax.
49-
50-
For more information about all supported MLflow and Azure Machine Learning functionalities, see [MLflow and Azure Machine Learning](concept-mlflow.md).
39+
> [!NOTE]
40+
> - To track experiments running on Azure Databricks, see [Track Azure Databricks ML experiments with MLflow and Azure Machine Learning](how-to-use-mlflow-azure-databricks.md).
41+
> - To track experiments running on Azure Synapse Analytics, see [Track Azure Synapse Analytics ML experiments with MLflow and Azure Machine Learning](how-to-use-mlflow-azure-synapse.md).
5142
52-
## Limitations
43+
Azure Machine Learning workspaces are MLflow-compatible. This compatibility means you can use MLflow to track runs, metrics, parameters, and artifacts in the workspaces without needing to change your training routines or inject any cloud-specific syntax. For more information about supported MLflow and Azure Machine Learning functionalities, see [MLflow and Azure Machine Learning](concept-mlflow.md).
5344

54-
Some methods available in the MLflow API might not be available when connected to Azure Machine Learning. For details about supported and unsupported operations, see [Support matrix for querying runs and experiments](how-to-track-experiments-mlflow.md#support-matrix-for-querying-runs-and-experiments).
45+
>[!NOTE]
46+
>Some methods available in the MLflow API might not be available when connected to Azure Machine Learning. For details about supported and unsupported operations, see [Support matrix for querying runs and experiments](how-to-track-experiments-mlflow.md#support-matrix-for-querying-runs-and-experiments).
5547
5648
## Prerequisites
5749

58-
- An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/).
50+
- Have an Azure subscription with the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/).
5951

6052
[!INCLUDE [mlflow-prereqs](includes/machine-learning-mlflow-prereqs.md)]
6153

6254
## Configure the experiment
6355

64-
MLflow organizes information in experiments and runs (_runs_ are called _jobs_ in Azure Machine Learning). By default, runs are logged to an experiment named __Default__ that is automatically created for you. You can configure the experiment where tracking is happening.
56+
MLflow organizes information in experiments and runs. Runs are called *jobs* in Azure Machine Learning. By default, runs are logged to an experiment named **Default** that is automatically created for you. You can configure the experiment to track.
6557

66-
# [Working interactively](#tab/interactive)
58+
# [Notebooks](#tab/interactive)
6759

6860
For interactive training, such as in a Jupyter notebook, use the MLflow command `mlflow.set_experiment()`. For example, the following code snippet configures an experiment:
6961

@@ -72,9 +64,9 @@ experiment_name = 'hello-world-example'
7264
mlflow.set_experiment(experiment_name)
7365
```
7466

75-
# [Working with jobs](#tab/jobs)
67+
# [Jobs](#tab/jobs)
7668

77-
To submit jobs, when using Azure Machine Learning CLI or SDK, set the experiment name by using the `experiment_name` property of the job. You don't have to configure it in your training script.
69+
To submit jobs by using the Azure Machine Learning CLI or SDK, set the experiment name by using the `experiment_name` property of the job. You don't have to configure the experiment name in your training script.
7870

7971
:::code language="yaml" source="~/azureml-examples-main/cli/jobs/basics/hello-world-org.yml" highlight="8" range="1-9":::
8072

articles/machine-learning/includes/machine-learning-mlflow-prereqs.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
author: santiagxf
33
ms.service: azure-machine-learning
44
ms.topic: include
5-
ms.date: 08/08/2024
5+
ms.date: 09/25/2024
66
ms.author: fasantia
77
---
88

9-
- Install the MLflow SDK package `mlflow` and the Azure Machine Learning `azureml-mlflow` plug-in for MLflow:
9+
- Install the MLflow SDK `mlflow` package and the Azure Machine Learning `azureml-mlflow` plugin for MLflow as follows:
1010

11-
```bash
12-
pip install mlflow azureml-mlflow
13-
```
14-
15-
> [!TIP]
16-
> You can use the [`mlflow-skinny`](https://github.com/mlflow/mlflow/blob/master/README_SKINNY.rst) package, which is a lightweight MLflow package without SQL storage, server, UI, or data science dependencies. `mlflow-skinny` is recommended for users who primarily need the MLflow tracking and logging capabilities without importing the full suite of features, including deployments.
11+
```bash
12+
pip install mlflow azureml-mlflow
13+
```
1714

18-
- An Azure Machine Learning workspace. To create a workspace, see the [Create machine learning resources tutorial](../quickstart-create-resources.md). Review the [access permissions you need to perform your MLflow operations in your workspace](../how-to-assign-roles.md#mlflow-operations).
15+
> [!TIP]
16+
> You can use the [`mlflow-skinny`](https://github.com/mlflow/mlflow/blob/master/README_SKINNY.rst) package, which is a lightweight MLflow package without SQL storage, server, UI, or data science dependencies. This package is recommended for users who primarily need the MLflow tracking and logging capabilities without importing the full suite of features, including deployments.
1917
20-
- If you perform remote tracking (that is, track experiments running outside Azure Machine Learning), configure MLflow to point to the tracking URI of your Azure Machine Learning workspace. For more information on how to connect MLflow to your workspace, see [Configure MLflow for Azure Machine Learning](../how-to-use-mlflow-configure-tracking.md).
18+
- Create an Azure Machine Learning workspace. To create a workspace, see [Create resources you need to get started](../quickstart-create-resources.md). Review the [access permissions](../how-to-assign-roles.md#mlflow-operations) you need to perform your MLflow operations in your workspace.
19+
20+
- To do remote tracking, that is track experiments running outside Azure Machine Learning, configure MLflow to point to the tracking URI of your Azure Machine Learning workspace. For more information on how to connect MLflow to your workspace, see [Configure MLflow for Azure Machine Learning](../how-to-use-mlflow-configure-tracking.md).

0 commit comments

Comments
 (0)