Open sraza-onshape opened 7 months ago
Hi @sraza-onshape Thank you for looking into this and providing your feedback. Issues 1 and 2 we will address in an upcoming documentation update.
For issue 3, I may need more information to debug it. Can you please share the SDK code you are using?
Hi @sraza-onshape Thank you for looking into this and providing your feedback. Issues 1 and 2 we will address in an upcoming documentation update.
For issue 3, I may need more information to debug it. Can you please share the SDK code you are using?
from azure.identity import DefaultAzureCredential
from azure.ai.ml import MLClient
from azure.ai.ml.entities import (
MonitoringTarget,
MonitorDefinition,
MonitorSchedule,
RecurrencePattern,
RecurrenceTrigger,
ServerlessSparkCompute,
)
# get a handle to the workspace
subscription_id, resource_group, workspace = ..., ..., ...
ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group, workspace)
spark_compute = ServerlessSparkCompute(
instance_type="standard_e4s_v3",
runtime_version="3.2"
)
monitoring_target = MonitoringTarget(endpoint_deployment_id="azureml:<insert_deployment_name>:<insert_deployment_name>")
monitor_definition = MonitorDefinition(compute=spark_compute, monitoring_target=monitoring_target)
recurrence_trigger = RecurrenceTrigger(
frequency="day",
interval=1,
schedule=RecurrencePattern(hours=3, minutes=15)
)
model_monitor = MonitorSchedule(name="model_monitoring_thing",
trigger=recurrence_trigger,
create_monitor=monitor_definition)
poller = ml_client.schedules.begin_create_or_update(model_monitor)
created_monitor = poller.result()
Hi @sraza-onshape ,the issue has been identified and the fix will be implemented in the next sdk release.
Under the heading "Set up out-of-the-box model monitoring", I have spotted 3 issues in trying to use the example implementation (that uses the Python SDK for Azure ML):
SparkResourceConfiguration
instead ofServerlessSparkCompute
ImportError
from above, we see another error when running the code:Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.