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
Generates a predicted value or scores based on a stored model. For more information, see [Native scoring using the PREDICT T-SQL function](../../machine-learning/predictions/native-scoring-predict-transact-sql.md).
28
28
29
-
## Syntax
29
+
> [!IMPORTANT]
30
+
> Support for `PREDICT` is in Preview in Azure SQL Managed Instance.
@@ -99,6 +168,10 @@ The `MODEL` parameter is used to specify the model used for scoring or predictio
99
168
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.
100
169
101
170
In Azure SQL Managed Instance, `PREDICT` supports models in [Open Neural Network Exchange (ONNX)](https://onnx.ai/get-started.html) format or models trained using the [RevoScaleR](../../machine-learning/r/ref-r-revoscaler.md) and [revoscalepy](../../machine-learning/python/ref-py-revoscalepy.md) packages.
171
+
172
+
> [!IMPORTANT]
173
+
> Support for `PREDICT` is in Preview in Azure SQL Managed Instance.
174
+
102
175
::: moniker-end
103
176
104
177
::: moniker range=">=azure-sqldw-latest"
@@ -114,9 +187,9 @@ The DATA parameter is used to specify the data used for scoring or prediction. D
114
187
**RUNTIME = ONNX**
115
188
116
189
> [!IMPORTANT]
117
-
> The `RUNTIME = ONNX` argument is only available in [Azure SQL Managed Instance](/azure/azure-sql/managed-instance/machine-learning-services-overview), [Azure SQL Edge](/azure/sql-database-edge/onnx-overview), and [Azure Synapse Analytics](/azure/synapse-analytics/overview-what-is).
190
+
> The `RUNTIME = ONNX` argument is only available in [Azure SQL Edge](/azure/sql-database-edge/onnx-overview), [Azure Synapse Analytics](/azure/synapse-analytics/overview-what-is), and is in Preview in [Azure SQL Managed Instance](/azure/azure-sql/managed-instance/machine-learning-services-overview).
118
191
119
-
Indicates the machine learning engine used for model execution. The `RUNTIME` parameter value is always `ONNX`. The parameter is required for Azure SQL Edge and Azure Synapse Analytics. On Azure SQL Managed Instance, the parameter is optional and only used when using ONNX models.
192
+
Indicates the machine learning engine used for model execution. The `RUNTIME` parameter value is always `ONNX`. The parameter is required for Azure SQL Edge and Azure Synapse Analytics. On Azure SQL Managed Instance (in Preview), the parameter is optional and only used when using ONNX models.
120
193
121
194
**WITH ( <result_set_definition> )**
122
195
@@ -148,7 +221,7 @@ The model that you use must have been created using one of the supported algorit
148
221
Algorithms that can be converted to [ONNX](https://onnx.ai/) model format are supported.
149
222
::: moniker-end
150
223
::: moniker range="=azuresqldb-mi-current"
151
-
Algorithms that can be converted to [ONNX](https://onnx.ai/) model format and models that you have created using one of the supported algorithms from the from the [RevoScaleR](../../machine-learning/r/ref-r-revoscaler.md) or [revoscalepy](../../machine-learning/python/ref-py-revoscalepy.md) packages are supported. For a list of currently supported algorithms in RevoScaleR and revoscalepy, see [Native scoring using the PREDICT T-SQL function](../../machine-learning/predictions/native-scoring-predict-transact-sql.md).
224
+
Algorithms that can be converted to [ONNX](https://onnx.ai/) model format and models that you have created using one of the supported algorithms from the [RevoScaleR](../../machine-learning/r/ref-r-revoscaler.md) or [revoscalepy](../../machine-learning/python/ref-py-revoscalepy.md) packages are supported. For a list of currently supported algorithms in RevoScaleR and revoscalepy, see [Native scoring using the PREDICT T-SQL function](../../machine-learning/predictions/native-scoring-predict-transact-sql.md).
152
225
::: moniker-end
153
226
154
227
### Permissions
@@ -171,7 +244,7 @@ FROM PREDICT(MODEL = @model,
171
244
DATA =dbo.mytableAS d) WITH (Score FLOAT) AS p;
172
245
```
173
246
174
-
:::moniker-end
247
+
:::moniker-end
175
248
176
249
::: moniker range=">=azure-sqldw-latest"
177
250
@@ -236,13 +309,17 @@ FROM PREDICT(MODEL = @model, DATA = dbo.mytable AS d, RUNTIME = ONNX) WITH(score
236
309
237
310
- The results of `PREDICT` are stored in a table called PredictionResults.
238
311
- The model is stored as `varbinary(max)` column in table call **Models**. Additional information such as ID and description can be saved in the table to identify the model.
239
-
- The alias **d** specified for table source in the `DATA` parameter is used to reference the columns in `dbo.mytable`.The input data column names should match the name of inputs for the model.
312
+
- The alias **d** specified for table source in the `DATA` parameter is used to reference the columns in `dbo.mytable`.The input data column names should match the name of inputs for the model.
240
313
- The alias **p** specified for the `PREDICT` function is used to reference the predicted column returned by the `PREDICT` function. The column name should have the same name as the output name for the model.
241
314
- All input columns and the predicted column are available to display in the SELECT statement.
242
315
243
316
## Next steps
244
317
318
+
Learn more about related concepts in the following articles:
319
+
245
320
-[Native scoring using the PREDICT T-SQL function](../../machine-learning/predictions/native-scoring-predict-transact-sql.md)
0 commit comments