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: docs/t-sql/queries/predict-transact-sql.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "PREDICT (Transact-SQL)"
3
3
ms.custom: ""
4
-
ms.date: "05/11/2020"
4
+
ms.date: "05/27/2020"
5
5
ms.prod: sql
6
6
ms.prod_service: "sql-database"
7
7
ms.reviewer: ""
@@ -33,7 +33,8 @@ For more information, see [Native scoring using the PREDICT T-SQL function](../.
33
33
PREDICT
34
34
(
35
35
MODEL = @model | model_literal,
36
-
DATA = object AS <table_alias>
36
+
DATA = object AS <table_alias>
37
+
[, RUNTIME = ONNX ]
37
38
)
38
39
WITH ( <result_set_definition> )
39
40
@@ -52,7 +53,7 @@ MODEL = @model | model_literal
52
53
53
54
### Arguments
54
55
55
-
**model**
56
+
**MODEL**
56
57
57
58
The `MODEL` parameter is used to specify the model used for scoring or prediction. The model is specified as a variable or a literal or a scalar expression.
58
59
@@ -64,17 +65,16 @@ The model object can be created by using R or Python or another tool.
64
65
[Open Neural Network Exchange (ONNX)](https://onnx.ai/get-started.html) is the supported model format for Azure Synapse.
65
66
::: moniker-end
66
67
67
-
**data**
68
+
**DATA**
68
69
69
70
The DATA parameter is used to specify the data used for scoring or prediction. Data is specified in the form of a table source in the query. Table source can be a table, table alias, CTE alias, view, or table-valued function.
70
71
71
-
<!-- This should likely be removed - TBD
72
-
**parameters**
72
+
**RUNTIME = ONNX**
73
73
74
-
The PARAMETERS parameter is used to specify optional user-defined parameters used for scoring or prediction.
74
+
> [!IMPORTANT]
75
+
> The `RUNTIME = ONNX` argument is only available in [Azure SQL Managed Instance](/azure/azure-sql/managed-instance/machine-learning-services-overview) and [Azure SQL Edge](/azure/sql-database-edge/onnx-overview).
75
76
76
-
The name of each parameter is specific to the model type. For example, the [rxPredict](https://docs.microsoft.com/machine-learning-server/r-reference/revoscaler/rxpredict) function in RevoScaleR supports the parameter `@computeResiduals`, which indicates whether residuals should be computed when scoring a logistic regression model. If you are calling a compatible model, you could pass that parameter name and a TRUE or FALSE value to the `PREDICT` function.
77
-
-->
77
+
Indicates the machine learning engine used for model execution. The `RUNTIME` parameter value is always `ONNX`.
78
78
79
79
**WITH ( <result_set_definition> )**
80
80
@@ -99,12 +99,15 @@ The `PREDICT` function is supported in all editions of SQL Server 2017 or later,
The model that you use must have been created using one of the supported algorithms from the RevoScaleR package. For a list of currently supported models, see [Real-time scoring](../../machine-learning/real-time-scoring.md).
Algorithms that can be converted to [ONNX](https://onnx.ai/) model format and models that you have been created using one of the supported algorithms from the RevoScaleR package are supported.
0 commit comments