Skip to content

Commit 63c5178

Browse files
committed
update docs
1 parent 7440509 commit 63c5178

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

articles/cognitive-services/Anomaly-Detector/tutorials/multivariate-anomaly-detection-synapse.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,42 +14,42 @@ ms.author: mbullwin
1414

1515
# Tutorial: Use Multivariate Anomaly Detector in Azure Synapse Analytics
1616

17-
Use this tutorial to detect anomalies among multiple variables in Azure Synapse Analytics in very large datasets and databases. This solution is perfect for scenarios like equipment predictive maintenance. The underlying power comes from the integration with [SynapseML](https://microsoft.github.io/SynapseML/), an open-source library that aims to simplify the creation of massively scalable machine learning pipelines, and it can be installed and used on any Spark 3 infrastructure including your **local machine**, **Databricks**, **Synapse Analytics**, and others.
17+
Use this tutorial to detect anomalies among multiple variables in Azure Synapse Analytics in very large datasets and databases. This solution is perfect for scenarios like equipment predictive maintenance. The underlying power comes from the integration with [SynapseML](https://microsoft.github.io/SynapseML/), an open-source library that aims to simplify the creation of massively scalable machine learning pipelines. It can be installed and used on any Spark 3 infrastructure including your **local machine**, **Databricks**, **Synapse Analytics**, and others.
1818

1919
For more information, see [SynapseML estimator for Multivariate Anomaly Detector](https://microsoft.github.io/SynapseML/docs/documentation/estimators/estimators_cognitive/#fitmultivariateanomaly).
2020

2121
In this tutorial, you'll learn how to:
2222

2323
> [!div class="checklist"]
2424
> * Use Azure Synapse Analytics to detect anomalies among multiple variables in Synapse Analytics.
25-
> * Train a multivariate anomaly detector model and do inference in separate notebooks in Synapse Analytics.
25+
> * Train a multivariate anomaly detector model and inference in separate notebooks in Synapse Analytics.
2626
> * Get anomaly detection result and root cause analysis for each anomaly.
2727
2828
## Prerequisites
2929

30-
In this section, you'll create the following resources in Azure portal:
30+
In this section, you'll create the following resources in the Azure portal:
3131

3232
* An **Anomaly Detector** resource to get access to the capability of Multivariate Anomaly Detector.
3333
* An **Azure Synapse Analytics** resource to use the Synapse Studio.
3434
* A **Storage account** to upload your data for model training and anomaly detection.
35-
* A **Key Vault** resource to hold the key of Anomaly Detector and the connection string of Storage Account.
35+
* A **Key Vault** resource to hold the key of Anomaly Detector and the connection string of the Storage Account.
3636

3737
### Create Anomaly Detector and Azure Synapse Analytics resources
3838

39-
* [Create a resource for Azure Synapse Analytics](https://portal.azure.com/#create/Microsoft.Synapse) in Azure portal, fill in all the required items.
39+
* [Create a resource for Azure Synapse Analytics](https://portal.azure.com/#create/Microsoft.Synapse) in the Azure portal, fill in all the required items.
4040
* [Create an Anomaly Detector](https://portal.azure.com/#create/Microsoft.CognitiveServicesAnomalyDetector) resource in the Azure portal.
41-
* Sign in [Azure Synapse Analytics](https://web.azuresynapse.net/) using your subscription and Workspace name.
41+
* Sign in to [Azure Synapse Analytics](https://web.azuresynapse.net/) using your subscription and Workspace name.
4242

4343
![An image of the Synapse Analytics landing page.](../media/multivariate-anomaly-detector-synapse/synapse-workspace-welcome-page.png)
4444

45-
### Create a Storage account resource
45+
### Create a storage account resource
4646

47-
* [Create a Storage account resource](https://portal.azure.com/#create/Microsoft.StorageAccount) in Azure portal. After your storage account is built, **create a container** to store intermediate data, since SynapseML will transform your original data to a schema that Multivariate Anomaly Detector supports. (Refer to Multivariate Anomaly Detector [input schema](../how-to/multivariate-how-to.md#input-data-schema))
47+
* [Create a storage account resource](https://portal.azure.com/#create/Microsoft.StorageAccount) in the Azure portal. After your storage account is built, **create a container** to store intermediate data, since SynapseML will transform your original data to a schema that Multivariate Anomaly Detector supports. (Refer to Multivariate Anomaly Detector [input schema](../how-to/multivariate-how-to.md#input-data-schema))
4848

4949
> [!NOTE]
50-
> For the purposes of this example only we are setting the security on the container to allow anonymous read access for containers and blobs since it will only contain our example .csv data. For anything other than demo purposes this is not recommended.
50+
> For the purposes of this example only we are setting the security on the container to allow anonymous read access for containers and blobs since it will only contain our example .csv data. For anything other than demo purposes this is **not recommended**.
5151
52-
![An image of the creating a container in storage account.](../media/multivariate-anomaly-detector-synapse/create-a-container.png)
52+
![An image of the creating a container in a storage account.](../media/multivariate-anomaly-detector-synapse/create-a-container.png)
5353

5454
### Create a Key Vault to hold Anomaly Detector Key and storage account connection string
5555

@@ -59,8 +59,8 @@ In this section, you'll create the following resources in Azure portal:
5959

6060
![An image of granting permission to Synapse.](../media/multivariate-anomaly-detector-synapse/grant-synapse-permission.png)
6161

62-
* Create a secret in Key Vault to hold Anomaly Detector key
63-
1. Go to your Anomaly Detector resource, go to **Anomaly Detector** > **Keys and Endpoint**. Then copy either of the two keys to the clipboard.
62+
* Create a secret in Key Vault to hold the Anomaly Detector key
63+
1. Go to your Anomaly Detector resource, **Anomaly Detector** > **Keys and Endpoint**. Then copy either of the two keys to the clipboard.
6464
2. Go to **Key Vault** > **Secret** to create a new secret. Specify the name of the secret, and then paste the key from the previous step into the **Value** field. Finally, select **Create**.
6565

6666
![An image of the creating a secret.](../media/multivariate-anomaly-detector-synapse/create-a-secret.png)
@@ -118,7 +118,7 @@ In this section, you'll create the following resources in Azure portal:
118118
}
119119
```
120120

121-
2. Import necessary modules and libraries.
121+
2. Import the necessary modules and libraries.
122122

123123
```python
124124
from synapse.ml.cognitive import *
@@ -132,7 +132,7 @@ In this section, you'll create the following resources in Azure portal:
132132
import synapse.ml
133133
```
134134

135-
3. Load your data. Compose your data as following format, and upload it to a cloud storage that Spark supports like Storage Account(in this sample). The timestamp column should be in `ISO8601` format, and the feature columns should be `string` type. **Download sample data [here](https://sparkdemostorage.blob.core.windows.net/mvadcsvdata/spark-demo-data.csv)**.
135+
3. Load your data. Compose your data in the following format, and upload it to a cloud storage that Spark supports like an Azure Storage Account. The timestamp column should be in `ISO8601` format, and the feature columns should be `string` type. **Download sample data [here](https://sparkdemostorage.blob.core.windows.net/mvadcsvdata/spark-demo-data.csv)**.
136136

137137
```python
138138
df = spark.read.format("csv").option("header", True).load("wasbs://[container_name]@[storage_account_name].blob.core.windows.net/[csv_file_name].csv")
@@ -232,15 +232,15 @@ model.cleanUpIntermediateData()
232232

233233
## Use trained model in another notebook with model ID (optional)
234234

235-
If you have the needs to run training code and inference code in separate notebooks in Synapse, you could first get the model ID and use that ID to load model in another notebook by creating a new object.
235+
If you have the need to run training code and inference code in separate notebooks in Synapse, you could first get the model ID and use that ID to load the model in another notebook by creating a new object.
236236

237237
1. Get the model ID in the training notebook.
238238

239239
```python
240240
model.getModelId()
241241
```
242242

243-
2. Load Model in inference notebook.
243+
2. Load the model in inference notebook.
244244

245245
```python
246246
retrievedModel = (DetectMultivariateAnomaly()
@@ -260,13 +260,15 @@ If you have the needs to run training code and inference code in separate notebo
260260
## Learn more
261261

262262
### About Anomaly Detector
263+
263264
* Learn about [what is Multivariate Anomaly Detector](../overview-multivariate.md).
264265
* SynapseML documentation with [Multivariate Anomaly Detector feature](https://microsoft.github.io/SynapseML/docs/documentation/estimators/estimators_cognitive/#fitmultivariateanomaly).
265266
* Recipe: [Cognitive Services - Multivariate Anomaly Detector](https://microsoft.github.io/SynapseML/docs/next/features/cognitive_services/CognitiveServices).
266267
* Need support? [Join the Anomaly Detector Community](https://forms.office.com/pages/responsepage.aspx?id=v4j5cvGGr0GRqy180BHbR2Ci-wb6-iNDoBoNxrnEk9VURjNXUU1VREpOT0U1UEdURkc0OVRLSkZBNC4u).
267268

268269
### About Synapse
270+
269271
* Quick start: [Configure prerequisites for using Cognitive Services in Azure Synapse Analytics](/azure/synapse-analytics/machine-learning/tutorial-configure-cognitive-services-synapse#create-a-key-vault-and-configure-secrets-and-access).
270272
* Visit [SynpaseML new website](https://microsoft.github.io/SynapseML/) for the latest docs, demos, and examples.
271-
* Learn more about [Synapse Analytics](https://docs.microsoft.com/azure/synapse-analytics/).
273+
* Learn more about [Synapse Analytics](/azure/synapse-analytics/).
272274
* Read about the [SynapseML v0.9.5 release](https://github.com/microsoft/SynapseML/releases/tag/v0.9.5) on GitHub.

0 commit comments

Comments
 (0)