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/stream-analytics/stream-analytics-how-to-configure-azure-machine-learning-endpoints-in-stream-analytics.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Use Azure Machine Learning Studio (classic) endpoints in Azure Stream Analytics
2
+
title: Use Machine Learning Studio (classic) endpoints in Azure Stream Analytics
3
3
description: This article describes how to use Machine Language user defined functions in Azure Stream Analytics.
4
4
author: jseb225
5
5
ms.author: jeanb
@@ -8,18 +8,18 @@ ms.service: stream-analytics
8
8
ms.topic: how-to
9
9
ms.date: 06/11/2019
10
10
---
11
-
# Azure Machine Learning Studio (classic) integration in Stream Analytics
12
-
Stream Analytics supports user-defined functions that call out to Azure Machine Learning Studio (classic) endpoints. REST API support for this feature is detailed in the [Stream Analytics REST API library](/rest/api/streamanalytics/). This article provides supplemental information needed for successful implementation of this capability in Stream Analytics. A tutorial has also been posted and is available [here](stream-analytics-machine-learning-integration-tutorial.md).
11
+
# Machine Learning Studio (classic) integration in Stream Analytics
12
+
Stream Analytics supports user-defined functions that call out to Machine Learning Studio (classic) endpoints. REST API support for this feature is detailed in the [Stream Analytics REST API library](/rest/api/streamanalytics/). This article provides supplemental information needed for successful implementation of this capability in Stream Analytics. A tutorial has also been posted and is available [here](stream-analytics-machine-learning-integration-tutorial.md).
13
13
14
-
## Overview: Azure Machine Learning Studio (classic) terminology
15
-
Microsoft Azure Machine Learning Studio (classic) provides a collaborative, drag-and-drop tool you can use to build, test, and deploy predictive analytics solutions on your data. This tool is called *Azure Machine Learning Studio (classic)*. Studio (classic) is used to interact with the machine learning resources and easily build, test, and iterate on your design. These resources and their definitions are below.
14
+
## Overview: Machine Learning Studio (classic) terminology
15
+
Microsoft Machine Learning Studio (classic) provides a collaborative, drag-and-drop tool you can use to build, test, and deploy predictive analytics solutions on your data. This tool is called *Machine Learning Studio (classic)*. Studio (classic) is used to interact with the machine learning resources and easily build, test, and iterate on your design. These resources and their definitions are below.
16
16
17
17
***Workspace**: The *workspace* is a container that holds all other machine learning resources together in a container for management and control.
18
18
***Experiment**: *Experiments* are created by data scientists to utilize datasets and train a machine learning model.
19
19
***Endpoint**: *Endpoints* are the Studio (classic) object used to take features as input, apply a specified machine learning model and return scored output.
20
20
***Scoring Webservice**: A *scoring webservice* is a collection of endpoints as mentioned above.
21
21
22
-
Each endpoint has apis for batch execution and synchronous execution. Stream Analytics uses synchronous execution. The specific service is named a [Request/Response Service](../machine-learning/classic/consume-web-services.md) in Azure Machine Learning Studio (classic).
22
+
Each endpoint has apis for batch execution and synchronous execution. Stream Analytics uses synchronous execution. The specific service is named a [Request/Response Service](../machine-learning/classic/consume-web-services.md) in Machine Learning Studio (classic).
23
23
24
24
## Studio (classic) resources needed for Stream Analytics jobs
25
25
For the purposes of Stream Analytics job processing, a Request/Response endpoint, an [apikey](../machine-learning/classic/consume-web-services.md), and a swagger definition are all necessary for successful execution. Stream Analytics has an additional endpoint that constructs the url for swagger endpoint, looks up the interface and returns a default UDF definition to the user.
@@ -35,7 +35,7 @@ By using REST APIs you may configure your job to call Studio (classic) functions
35
35
6. Start the job
36
36
37
37
## Creating a UDF with basic properties
38
-
As an example, the following sample code creates a scalar UDF named *newudf* that binds to an Azure Machine Learning Studio (classic) endpoint. Note that the *endpoint* (service URI) can be found on the API help page for the chosen service and the *apiKey* can be found on the Services main page.
38
+
As an example, the following sample code creates a scalar UDF named *newudf* that binds to an Machine Learning Studio (classic) endpoint. Note that the *endpoint* (service URI) can be found on the API help page for the chosen service and the *apiKey* can be found on the Services main page.
39
39
40
40
```
41
41
PUT : /subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.StreamAnalytics/streamingjobs/<streamingjobName>/functions/<udfName>?api-version=<apiVersion>
@@ -62,7 +62,7 @@ Example request body:
62
62
```
63
63
64
64
## Call RetrieveDefaultDefinition endpoint for default UDF
65
-
Once the skeleton UDF is created the complete definition of the UDF is needed. The RetrieveDefaultDefinition endpoint helps you get the default definition for a scalar function that is bound to an Azure Machine Learning Studio (classic) endpoint. The payload below requires you to get the default UDF definition for a scalar function that is bound to a Studio (classic) endpoint. It doesn't specify the actual endpoint as it has already been provided during PUT request. Stream Analytics calls the endpoint provided in the request if it is provided explicitly. Otherwise it uses the one originally referenced. Here the UDF takes a single string parameter (a sentence) and returns a single output of type string which indicates the "sentiment" label for that sentence.
65
+
Once the skeleton UDF is created the complete definition of the UDF is needed. The RetrieveDefaultDefinition endpoint helps you get the default definition for a scalar function that is bound to an Machine Learning Studio (classic) endpoint. The payload below requires you to get the default UDF definition for a scalar function that is bound to a Studio (classic) endpoint. It doesn't specify the actual endpoint as it has already been provided during PUT request. Stream Analytics calls the endpoint provided in the request if it is provided explicitly. Otherwise it uses the one originally referenced. Here the UDF takes a single string parameter (a sentence) and returns a single output of type string which indicates the "sentiment" label for that sentence.
66
66
67
67
```
68
68
POST : /subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.StreamAnalytics/streamingjobs/<streamingjobName>/functions/<udfName>/RetrieveDefaultDefinition?api-version=<apiVersion>
0 commit comments