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
1. Run the following command to create the model. Replace `<file-name>` with the name of the model specification file, such as `model-monitoring-with-collected-data.yaml`.
853
852
854
853
```azurecli
855
-
az ml schedule create -f ./model-monitoring-with-collected-data.yaml
854
+
az ml schedule create -f ./<file-name>
856
855
```
857
856
858
857
# [Python SDK](#tab/python)
859
858
859
+
Use a script that's similat to the following Python code to set up model monitoring. First replace the following placeholders with appropriate values:
860
+
861
+
| Placeholder | Description | Example |
862
+
| --- | --- | --- |
863
+
| <subscription_ID> | The ID of your subscription | aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e |
864
+
| <resource-group-name> | The name of the resource group that contains your workspace | my-resource-group |
865
+
| <workspace_name> | The name of your workspace | my-workspace |
866
+
| <production-data-asset-name> | The name of the data asset that contains production data | my_model_production_data |
867
+
| <preprocessing-component-name> | The name of your preprocessing component | production_data_preprocessing |
868
+
| <training-data-asset-name> | The name of the training data asset that you want to use as a reference data asset | my_model_training_data |
869
+
| <email-address-1> and <email-address-2> | Email addresses to use for notifications | `[email protected]` |
870
+
| <frequency-unit> | The monitoring frequency unit, such as "minute," "hour," "day," "week," or "month" | day |
871
+
| <interval> | The interval between jobs, such as 1 or 2 days or weeks | 1 |
872
+
| <start-hour> | The hour to start monitoring, on a 24-hour clock | 3 |
873
+
| <start-minutes> | The minutes after the specified hour to start monitoring | 15 |
874
+
860
875
```python
861
876
from azure.identity import InteractiveBrowserCredential
862
877
from azure.ai.ml import Input, MLClient
@@ -887,40 +902,43 @@ from azure.ai.ml.entities import (
887
902
ProductionData
888
903
)
889
904
890
-
# get a handle to the workspace
905
+
# Get a handle to the workspace.
906
+
subscription_id = "<subscription-ID>"
907
+
resource_group = "<resource-group-name>"
908
+
workspace = "<workspace-name>"
891
909
ml_client = MLClient(
892
910
InteractiveBrowserCredential(),
893
911
subscription_id,
894
912
resource_group,
895
913
workspace
896
914
)
897
915
916
+
# Specify the compute instance.
898
917
spark_compute = ServerlessSparkCompute(
899
918
instance_type="standard_e4s_v3",
900
-
runtime_version="3.2"
919
+
runtime_version="3.3"
901
920
)
902
921
903
-
#define target dataset (production dataset)
922
+
# Specify the target data asset (the production data asset).
The studio currently doesn't support configuring monitoring for models that are deployed outside of Azure Machine Learning. See the Azure CLI or Python SDK tabs instead.
1018
+
The studio currently doesn't support configuring monitoring for models that are deployed outside Azure Machine Learning. See the Azure CLI or Python SDK tabs instead.
999
1019
1000
-
Once you've configured your monitor with the CLI or SDK, you can view the monitoring results in the studio. For more information on interpreting monitoring results, see [Interpreting monitoring results](how-to-monitor-model-performance.md#interpret-monitoring-results).
1020
+
After you use the Azure CLI or the Python SDK to configure monitoring, you can view the monitoring results in the studio. For more information about interpreting monitoring results, see [Interpret monitoring results](how-to-monitor-model-performance.md#interpret-monitoring-results).
0 commit comments