You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-monitor-model-performance.md
+33-28Lines changed: 33 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,19 +82,23 @@ You can use the Azure CLI, the Python SDK, or the studio for an out-of-box setup
82
82
83
83
# [Azure CLI](#tab/azure-cli)
84
84
85
-
Azure Machine Learning model monitoring uses`az ml schedule` to schedule a monitoring job. You can create the out-of-box model monitor with the following CLI command and YAML definition:
85
+
In the Azure CLI, you use`az ml schedule` to schedule a monitoring job.
86
86
87
-
```azurecli
88
-
az ml schedule create -f ./out-of-box-monitoring.yaml
89
-
```
87
+
1. Create a monitoring definition in a YAML file. For a sample out-of-box definition, see the following YAML code, which is also available in the [azureml-examples repository](https://github.com/Azure/azureml-examples/blob/main/cli/monitoring/out-of-box-monitoring.yaml).
88
+
89
+
Before you use this definition, adjust the values to fit your environment. For `endpoint_deployment_id`, use a value in the format `azureml:<endpoint-name>:<model-name>`.
az ml schedule create -f ./out-of-box-monitoring.yaml
97
+
```
94
98
95
99
# [Python SDK](#tab/python)
96
100
97
-
You can use the following code to set up the out-of-box model monitoring:
101
+
To set up the out-of-box model monitoring, use code that's similar to the following sample. For `endpoint_deployment_id`, use a value in the format `azureml:<endpoint-name>:<model-name>`.
98
102
99
103
```python
100
104
from azure.identity import DefaultAzureCredential
@@ -109,82 +113,83 @@ from azure.ai.ml.entities import (
1.Navigate to [Azure Machine Learning studio](https://ml.azure.com).
170
+
1.Go to [Azure Machine Learning studio](https://ml.azure.com).
166
171
1. Go to your workspace.
167
-
1.Select**Monitoring** from the **Manage** section
172
+
1.Under**Manage**, select **Monitoring**.
168
173
1. Select **Add**.
169
174
170
175
:::image type="content" source="media/how-to-monitor-models/add-model-monitoring.png" alt-text="Screenshot showing how to add model monitoring." lightbox="media/how-to-monitor-models/add-model-monitoring.png":::
171
176
172
-
1. On the **Basic settings** page, use**(Optional) Select model** to choose the model to monitor.
173
-
1.The **(Optional) Select deployment with data collection enabled**dropdown list should be automatically populated if the model is deployed to an Azure Machine Learning online endpoint. Select the deployment from the dropdown list.
174
-
1. Select the training data to use as the comparison reference in the **(Optional) Select training data** box.
175
-
1.Enter a name for the monitoring in **Monitor name** or keep the default name.
176
-
1.Notice that the virtual machine size is already selected for you.
177
-
1.Select your **Time zone**.
178
-
1.Select **Recurrence** or **Cron expression** scheduling.
179
-
1. For **Recurrence** scheduling, specify the repeat frequency, day, and time. For **Cron expression** scheduling, enter a cron expression for monitoring run.
177
+
1. On the Basic settings page, under**(Optional) Select model**, select the model that you want to monitor.
178
+
1.In the **(Optional) Select deployment with data collection enabled**list, select the deployment that you want to monitor. This list should be automatically populated if the model is deployed to an Azure Machine Learning online endpoint.
179
+
1.Under **(Optional) Select training data**, select the training data to use as the comparison reference.
180
+
1.Under **Monitor name**, enter a name for the monitoring, or keep the default name.
181
+
1.Under **Virtual machine size**, use the default size.
182
+
1.Under **Time zone**, select your time zone.
183
+
1.For scheduling, select **Recurrence** or **Cron expression**.
184
+
1. For recurrence scheduling, specify the repeat frequency, day, and time. For cron expression scheduling, enter a cron expression for a monitoring run.
180
185
181
186
:::image type="content" source="media/how-to-monitor-models/model-monitoring-basic-setup.png" alt-text="Screenshot of basic settings page for model monitoring." lightbox="media/how-to-monitor-models/model-monitoring-basic-setup.png":::
182
187
183
188
1. Select **Next** to go to the **Advanced settings** section.
184
-
1.Select **Next** on the **Configure data asset** page to keep the default datasets.
185
-
1.Select **Next** to go to the **Select monitoring signals** page.
186
-
1.Select **Next** to go to the **Notifications** page. Add your email to receive email notifications.
187
-
1.Review your monitoring details and select **Create** to create the monitor.
189
+
1.On the Configure data asset page, select **Next** to keep the default datasets.
190
+
1.On the Select monitoring signals page, select **Next**.
191
+
1.On the Notifications page, enter the email address that you want to use to receive notifications, and then select **Next**.
192
+
1.On the Review monitoring details page, check the settings, and then select **Create**.
0 commit comments