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
Learn how to use native scoring with the [PREDICT T-SQL function](../../t-sql/queries/predict-transact-sql.md) to generate prediction values for new data inputs in near-real-time. Native scoring requires that you have an alreadytrained model.
18
+
Learn how to use native scoring with the [PREDICT T-SQL function](../../t-sql/queries/predict-transact-sql.md) to generate prediction values for new data inputs in near-real-time. Native scoring requires that you have an already-trained model.
19
19
20
20
The `PREDICT` function uses the native C++ extension capabilities in [SQL machine learning](../index.yml). This methodology offers the fastest possible processing speed of forecasting and prediction workloads and support models in [Open Neural Network Exchange (ONNX)](https://onnx.ai/get-started.html) format or models trained using the [RevoScaleR](../r/ref-r-revoscaler.md) and [revoscalepy](../python/ref-py-revoscalepy.md) packages.
21
21
22
22
## How native scoring works
23
23
24
-
Native scoring uses libraries that can read model in ONNX or predefined binary format, and generate scores for new data inputs that you provide. Because the model is trained, deployed, and stored, it can be used for scoring without having to call the R or Python interpreter. As such, the overhead of multiple process interactions is reduced, resulting in faster prediction performance.
24
+
Native scoring uses libraries that can read models in ONNX or a predefined binary format, and generate scores for new data inputs that you provide. Because the model is trained, deployed, and stored, it can be used for scoring without having to call the R or Python interpreter. This means that the overhead of multiple process interactions is reduced, resulting in faster prediction performance.
25
25
26
26
To use native scoring, call the `PREDICT` T-SQL function and pass the following required inputs:
27
27
@@ -40,11 +40,11 @@ The function returns predictions for the input data, together with any columns o
40
40
+ Azure SQL Edge
41
41
+ Azure Synapse Analytics
42
42
43
-
The function is enabled by default. You do not need to install R, Python, or enable additional features.
43
+
The function is enabled by default. You do not need to install R or Python, or enable additional features.
44
44
45
45
## Supported models
46
46
47
-
`PREDICT` model format support depends on the SQL platform you perform native scoring on. See the table below for which model formats are supported on which platform.
47
+
The model formats supported by the `PREDICT` function depends on the SQL platform on which you perform native scoring. See the table below to see which model formats are supported on which platform.
48
48
49
49
| Platform | ONNX model format | RevoScale model format |
50
50
|-|-|-|
@@ -156,7 +156,7 @@ GO
156
156
DROPTABLE IF EXISTS iris_rx_data;
157
157
GO
158
158
CREATETABLEiris_rx_data (
159
-
"Sepal.Length" float not null, "Sepal.Width" float not null
159
+
"Sepal.Length" float not null, "Sepal.Width" float not null
160
160
, "Petal.Length" float not null, "Petal.Width" float not null
0 commit comments