简体   繁体   中英

How to use the Multi-variate Anomaly Detection Cognitive Service by Azure?

In the latest version of the Anomaly Detection Service by Azure which supports the Multi-variate Cognitive Service, we need to train a model and then consume it.

The quickstart documentation for Python mentions a few libraries which are not getting imported:

from azure.ai.anomalydetector.models import DetectionRequest, ModelInfo

Both these libraries are throwing import errors. How can we use the Multivariate Anomaly Detection Service using the Python SDK?

This error was with version azure-ai-anomalydetector==3.0.0b2 . With version azure-ai-anomalydetector==3.0.0b3 , this has been addressed.

The problem is because of the change of the response format recently. To solve that issue, you can change the line with error to

model_status = self.ad_client.get_multivariate_model(trained_model_id).model_info.status

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM