Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 1a6f85d

Browse files
committed
Remove incorrect code example
1 parent 71eb8d8 commit 1a6f85d

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

docs/t-sql/queries/predict-transact-sql.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,6 @@ No permissions are required for `PREDICT`; however, the user needs `EXECUTE` per
103103

104104
The following examples demonstrate the syntax for calling `PREDICT`.
105105

106-
### Call a stored model and use it for prediction
107-
108-
This example calls an existing logistic regression model stored in table [models_table]. It gets the latest trained model, using a SELECT statement, and then passes the binary model to the PREDICT function. The input values represent features; the output represents the classification assigned by the model.
109-
110-
```sql
111-
DECLARE @logit_model varbinary(max) = "SELECT TOP 1 [model_binary] from [models_table] ORDER BY [trained_date] DESC";
112-
DECLARE @input_qry nvarchar(100) = "SELECT ID, [Gender], [Income] from NewCustomers";
113-
114-
SELECT PREDICT [class]
115-
FROM PREDICT(MODEL = @logit_model, DATA = @input_qry)
116-
WITH (class string);
117-
```
118-
119106
### Using PREDICT in a FROM clause
120107

121108
This example references the `PREDICT` function in the `FROM` clause of a `SELECT` statement:

0 commit comments

Comments
 (0)