Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f9e0a65

Browse files
committedSep 18, 2020
Pm feedback
1 parent 74ae11c commit f9e0a65

File tree

3 files changed

+21
-41
lines changed

3 files changed

+21
-41
lines changed
 

‎articles/machine-learning/how-to-use-mlflow-azure-databricks.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,28 @@ See [Track experiment runs and create endpoints with MLflow and Azure Machine Le
2929
3030
## Prerequisites
3131

32-
You need,
33-
34-
* [The Azure Machine Learning Python SDK installed](https://docs.microsoft.com/python/api/overview/azure/ml/install?view=azure-ml-py&preserve-view=true) on your local computer. The SDK provides the connectivity for MLflow to access your workspace in the `azureml-mlflow` package included in `azureml-core`.
32+
* Install the `azureml-mlflow` package.
33+
* This package automatically brings in `azureml-core` of the [The Azure Machine Learning Python SDK](https://docs.microsoft.com/python/api/overview/azure/ml/install?view=azure-ml-py&preserve-view=true), which provides the connectivity for MLflow to access your workspace.
3534
* An [Azure Databricks workspace and cluster](https://docs.microsoft.com/azure/azure-databricks/quickstart-create-databricks-workspace-portal).
3635
* [Create an Azure Machine Learning Workspace](how-to-manage-workspace.md).
3736

3837
## Track Azure Databricks runs
3938

40-
MLflow Tracking with Azure Machine Learning lets you store the logged metrics and artifacts from your Azure Databricks runs into all three of the following areas at once:
39+
MLflow Tracking with Azure Machine Learning lets you store the logged metrics and artifacts from your Azure Databricks runs into both your:
4140

42-
* Azure Machine Learning workspace
4341
* Azure Databricks workspace.
44-
* MLflow
42+
* Azure Machine Learning workspace
4543

46-
After you create your Azure Databricks workspace and cluster, complete the steps in the following sections to run your MLflow experiments with Azure Databricks.
44+
After you create your Azure Databricks workspace and cluster,
4745

4846
1. Install the *azureml-mlflow* library from PyPi, to ensure that your cluster has access to the necessary functions and classes.
4947

50-
> [!NOTE]
51-
> The `azureml.core` package includes `azureml-mlflow`. If you already installed `azureml.core`, you can skip the `azureml-mlflow` installation step.
52-
5348
1. Set up your experiment notebook and workspaces.
49+
5450
1. Connect your Azure Databricks workspace and Azure Machine Learning workspace.
5551

52+
The following sections provide additional detail on the aforementioned steps to run your MLflow experiments with Azure Databricks.
53+
5654
## Install libraries
5755

5856
To install libraries on your cluster, navigate to the **Libraries** tab and select **Install New**
@@ -68,7 +66,7 @@ In the **Package** field, type azureml-mlflow and then select install. Repeat th
6866
Once your ADB cluster is set up, import your experiment notebook, open it and attach your cluster to it.
6967

7068
The following code should be in your experiment notebook.
71-
This code.
69+
This code,
7270
* Gets the details of your Azure subscription to instantiate your Azure Machine Learning workspace.
7371

7472
* Assumes you have an existing resource group and Azure Machine Learning workspace, otherwise you can [create them](how-to-manage-workspace.md).
@@ -80,7 +78,6 @@ import azureml.mlflow
8078
import azureml.core
8179

8280
from azureml.core import Workspace
83-
from azureml.mlflow import get_portal_url
8481

8582
subscription_id = 'subscription_id'
8683

@@ -99,9 +96,13 @@ ws = Workspace.get(name=workspace_name,
9996
## Connect your Azure Databricks and Azure Machine Learning workspaces
10097

10198
Linking your ADB workspace to your Azure Machine Learning workspace enables you to track your experiment data in the Azure Machine Learning workspace.
102-
On the [Azure portal](https://ms.portal.azure.com), you can link your ADB workspace to a new or existing Azure Machine Learning workspace in one step.
10399

104-
To do so, navigate to your ADB workspace and select the **Link Azure Machine Learning workspace** button on the bottom right.
100+
To link your ADB workspace to a new or existing Azure Machine Learning workspace,
101+
1. Sign in to [Azure portal](https://ms.portal.azure.com)
102+
1. Navigate to your ADB workspace's **Overview** page
103+
1. Select the **Link Azure Machine Learning workspace** button on the bottom right.
104+
105+
![Link Azure DB and Azure Machine Learning workspaces](./media/how-to-use-mlflow-azure-databricks/link-workspaces.png)
105106

106107
## MLflow Tracking in your workspaces
107108

@@ -110,7 +111,6 @@ all of the following places:
110111

111112
* The linked Azure Machine Learning workspace.
112113
* Your original ADB workspace.
113-
* MLflow.
114114

115115
All your experiments will land in the managed Azure Machine Learning tracking service.
116116

@@ -136,7 +136,9 @@ mlflow.log_metric('epoch_loss', loss.item())
136136

137137
When you are ready to create an endpoint for your ML models, you can deploy your MLflow experiments as an Azure Machine Learning web service. Deployment allows you to leverage and apply the Azure Machine Learning model management and data drift detection capabilities to your production models.
138138

139-
To learn more, see [Deploy and register MLflow models](how-to-use-mlflow.md).
139+
Azure Databricks runs can be deployed to the following endpoints,
140+
* [Azure Container Instance](how-to-use-mlflow.md#deploy-to-aci)
141+
* [Azure Kubernetes Service](how-to-use-mlflow.md#deploy-to-aks)
140142

141143
## Clean up resources
142144

‎articles/machine-learning/how-to-use-mlflow.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,11 @@ The following diagram illustrates that with MLflow Tracking, you track an experi
5454
|Monitor model performance||| | |
5555
| Detect data drift | || ||
5656

57-
The following table compares MLflow to Azure Machine Learning capabilities
58-
59-
| Capability | MLflow Tracking & Deployment | Azure Machine Learning Python SDK
60-
|---|---|---
61-
| Manage computes & datastores | ||
62-
| Log metrics |||
63-
|Create training jobs|||
64-
| Upload & manage artifacts |||
65-
| Manage registered models |||
66-
| Deploy models |||
67-
6857
## Prerequisites
69-
You need,
7058

71-
* [The Azure Machine Learning SDK installed](https://docs.microsoft.com/python/api/overview/azure/ml/install?view=azure-ml-py&preserve-view=true) on your local computer. The SDK provides the connectivity for MLflow to access your workspace with the `azureml-mlflow` package that's part of `azureml-core`.
72-
* [To create an Azure Machine Learning Workspace](how-to-manage-workspace.md).
59+
* Install the `azureml-mlflow` package.
60+
* This package automatically brings in `azureml-core` of the [The Azure Machine Learning Python SDK](https://docs.microsoft.com/python/api/overview/azure/ml/install?view=azure-ml-py&preserve-view=true), which provides the connectivity for MLflow to access your workspace.
61+
* [Create an Azure Machine Learning Workspace](how-to-manage-workspace.md).
7362

7463
## Track local runs
7564

@@ -100,17 +89,6 @@ mlflow.set_experiment(experiment_name)
10089
with mlflow.start_run():
10190
mlflow.log_metric('alpha', 0.03)
10291
```
103-
## Track local or interactive runs
104-
105-
MLflow tracking lets you store logged metrics and artifacts from your runs into your Azure Machine Learning workspace.
106-
107-
In your training script, import `mlflow` to use the MLflow logging APIs, and start logging your run metrics.
108-
109-
```Python
110-
import mlflow
111-
with mlflow.start_run():
112-
mlflow.log_metric('example', 1.23)
113-
```
11492

11593
## Track remote runs
11694

Loading

0 commit comments

Comments
 (0)
Please sign in to comment.