Skip to content

Commit 5c28603

Browse files
authored
Merge pull request #14331 from MicrosoftDocs/master
3/31 AM Publish
2 parents fc5b757 + 44c900f commit 5c28603

File tree

157 files changed

+193
-238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+193
-238
lines changed

.openpublishing.redirection.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16586,9 +16586,9 @@
1658616586
"redirect_document_id": false
1658716587
},
1658816588
{
16589-
"source_path": "docs/database-engine/deprecated-database-engine-features-in-sql-server-version-15.md",
16590-
"redirect_url": "/sql/database-engine/deprecated-database-engine-features-in-sql-server-2019",
16589+
"source_path": "docs/database-engine/deprecated-database-engine-features-in-sql-server-2019.md",
16590+
"redirect_url": "/sql/database-engine/deprecated-database-engine-features-in-sql-server-version-15",
1659116591
"redirect_document_id": true
16592-
}
16592+
}
1659316593
]
1659416594
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<Token>**THIS TOPIC APPLIES TO:**![yes](media/yes.png)SQL Server (starting with 2008)![no](media/no.png)Azure SQL Database![no](media/no.png)Azure SQL Data Warehouse ![no](media/no.png)Parallel Data Warehouse </Token>
1+
<Token>**THIS TOPIC APPLIES TO:**![yes](media/yes-icon.png)SQL Server (starting with 2008)![no](media/no-icon.png)Azure SQL Database![no](media/no-icon.png)Azure SQL Data Warehouse ![no](media/no-icon.png)Parallel Data Warehouse </Token>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**THIS TOPIC APPLIES TO:** ![yes](media/yes.png "yes")SQL Server \(starting with 2008\)
2-
![no](media/no.png "no")Azure SQL Database
3-
![no](media/no.png "no")Azure SQL Data Warehouse
4-
![no](media/no.png "no")Parallel Data Warehouse
1+
**THIS TOPIC APPLIES TO:** ![yes](media/yes-icon.png "yes")SQL Server \(starting with 2008\)
2+
![no](media/no-icon.png "no")Azure SQL Database
3+
![no](media/no-icon.png "no")Azure SQL Data Warehouse
4+
![no](media/no-icon.png "no")Parallel Data Warehouse

docs/advanced-analytics/r/how-to-do-realtime-scoring.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Use rxPredict, or sp_rxPredict for real-time scoring, or PREDICT T-
44
ms.prod: sql
55
ms.technology: machine-learning
66

7-
ms.date: 08/30/2018
7+
ms.date: 03/30/2020
88
ms.topic: conceptual
99
author: dphansen
1010
ms.author: davidph
@@ -23,7 +23,7 @@ The following table summarizes the scoring frameworks for forecasting and predic
2323
| Methodology | Interface | Library requirements | Processing speeds |
2424
|-----------------------|-------------------|----------------------|----------------------|
2525
| Extensibility framework | [rxPredict (R)](https://docs.microsoft.com/machine-learning-server/r-reference/revoscaler/rxpredict) <br/>[rx_predict (Python)](https://docs.microsoft.com/machine-learning-server/python-reference/revoscalepy/rx-predict) | None. Models can be based on any R or Python function | Hundreds of milliseconds. <br/>Loading a runtime environment has a fixed cost, averaging three to six hundred milliseconds, before any new data is scored. |
26-
| [Real-time scoring CLR extension](../real-time-scoring.md) | [sp_rxPredict](https://docs.microsoft.com//sql/relational-databases/system-stored-procedures/sp-rxpredict-transact-sql) on a serialized model | R: RevoScaleR, MicrosoftML <br/>Python: revoscalepy, microsoftml | Tens of milliseconds, on average. |
26+
| [Real-time scoring CLR extension](../real-time-scoring.md) | [sp_rxPredict](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-rxpredict-transact-sql) on a serialized model | R: RevoScaleR, MicrosoftML <br/>Python: revoscalepy, microsoftml | Tens of milliseconds, on average. |
2727
| [Native scoring C++ extension](../sql-native-scoring.md) | [PREDICT T-SQL function](https://docs.microsoft.com/sql/t-sql/queries/predict-transact-sql) on a serialized model | R: RevoScaleR <br/>Python: revoscalepy | Less than 20 milliseconds, on average. |
2828

2929
Speed of processing and not substance of the output is the differentiating feature. Assuming the same functions and inputs, the scored output should not vary based on the approach you use.
@@ -80,7 +80,7 @@ To use a model with either of the fast scoring options, save the model using a s
8080

8181
**Using SQL**
8282

83-
From SQL code, you can train the model using [sp_execute_external_script](https://docs.microsoft.com//sql/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql), and directly insert the trained models into a table, in a column of type **varbinary(max)**. For a simple example, see [Create a preditive model in R](../tutorials/quickstart-r-train-score-model.md)
83+
From SQL code, you can train the model using [sp_execute_external_script](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql), and directly insert the trained models into a table, in a column of type **varbinary(max)**. For a simple example, see [Create a preditive model in R](../tutorials/quickstart-r-train-score-model.md)
8484

8585
**Using R**
8686

docs/advanced-analytics/real-time-scoring.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Generate predictions using sp_rxPredict, scoring data inputs agains
44
ms.prod: sql
55
ms.technology: machine-learning
66

7-
ms.date: 07/26/2019
7+
ms.date: 03/30/2020
88
ms.topic: conceptual
99
author: dphansen
1010
ms.author: davidph
@@ -14,7 +14,7 @@ monikerRange: ">=sql-server-2016||>=sql-server-linux-ver15||=sqlallproducts-allv
1414
# Real-time scoring with sp_rxPredict in SQL Server machine learning
1515
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)]
1616

17-
Real-time scoring uses the [sp_rxPredict](https://docs.microsoft.com//sql/relational-databases/system-stored-procedures/sp-rxpredict-transact-sql) system stored procedure and the CLR extension capabilities in SQL Server for high-performance predictions or scores in forecasting workloads. Real-time scoring is language-agnostic and executes with no dependencies on R or Python run times. Assuming a model created and trained using Microsoft functions, and then serialized to a binary format in SQL Server, you can use real-time scoring to generate predicted outcomes on new data inputs on SQL Server instances that do not have the R or Python add-on installed.
17+
Real-time scoring uses the [sp_rxPredict](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-rxpredict-transact-sql) system stored procedure and the CLR extension capabilities in SQL Server for high-performance predictions or scores in forecasting workloads. Real-time scoring is language-agnostic and executes with no dependencies on R or Python run times. Assuming a model created and trained using Microsoft functions, and then serialized to a binary format in SQL Server, you can use real-time scoring to generate predicted outcomes on new data inputs on SQL Server instances that do not have the R or Python add-on installed.
1818

1919
## How real-time scoring works
2020

@@ -27,7 +27,7 @@ Real-time scoring is a multi-step process:
2727
1. The stored procedure that does scoring must be enabled on a per-database basis.
2828
2. You load the pre-trained model in binary format.
2929
3. You provide new input data to be scored, either tabular or single rows, as input to the model.
30-
4. To generate scores, call the [sp_rxPredict](https://docs.microsoft.com//sql/relational-databases/system-stored-procedures/sp-rxpredict-transact-sql) stored procedure.
30+
4. To generate scores, call the [sp_rxPredict](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-rxpredict-transact-sql) stored procedure.
3131

3232
## Prerequisites
3333

@@ -146,9 +146,9 @@ You must enable this feature for each database that you want to use for scoring.
146146

147147
3. RegisterRExt.exe creates the following objects:
148148

149-
+ Trusted assemblies
150-
+ The stored procedure `sp_rxPredict`
151-
+ A new database role, `rxpredict_users`. The database administrator can use this role to grant permission to users who use the real-time scoring functionality.
149+
+ Trusted assemblies
150+
+ The stored procedure `sp_rxPredict`
151+
+ A new database role, `rxpredict_users`. The database administrator can use this role to grant permission to users who use the real-time scoring functionality.
152152

153153
4. Add any users who need to run `sp_rxPredict` to the new role.
154154

0 commit comments

Comments
 (0)