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
On Windows, SqlClient uses a native implementation of the SNI network interface by default. To enable the use of a managed SNI implementation, you can set the AppContext switch **"Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows"** to `true` at application startup:
36
38
37
39
```csharp
@@ -92,6 +94,8 @@ AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.MakeReadAsyncBlocking", fa
By default, configurable retry logic is disabled. To enable this feature, set the AppContext switch **Switch.Microsoft.Data.SqlClient.EnableRetryLogic** to `true` at application startup. This switch is required, even if a retry provider is assigned to a connection or command.
[!INCLUDE [SQL Server 2016 and later](../../includes/applies-to-version/sqlserver2016.md)]
16
15
17
-
The **rxExecBy** function in RevoScaleR supports parallel processing of multiple related models. Rather than train one large model based on data from multiple similar entities, a data scientist can quickly create many related models, each using data specific to a single entity.
16
+
Learn how to use the **rxExecBy** function in RevoScaleR to parallel process multiple related models with [SQL Server Machine Learning Services](../sql-server-machine-learning-services.md). Rather than train one large model based on data from multiple similar entities, you can quickly create many related models, each using data specific to a single entity.
17
+
18
+
## What rxExecBy can do
18
19
19
20
For example, suppose you are monitoring device failures, capturing data for many different types of equipment. By using rxExecBy, you can provide a single large dataset as input, specify a column on which to stratify the dataset, such as device type, and then create multiple models for individual devices.
20
21
21
22
This use case has been termed ["pleasingly parallel"](https://en.wikipedia.org/wiki/Embarrassingly_parallel) because it breaks a large complicated problem into component parts for concurrent processing.
22
23
23
24
Typical applications of this approach include forecasting for individual household smart meters, creating revenue projections for separate product lines, or creating models for loan approvals that are tailored to individual bank branches.
24
25
25
-
## How rxExec Works
26
+
## How rxExecBy works
26
27
27
28
The rxExecBy function in RevoScaleR is designed for high-volume parallel processing over a large number of small data sets.
28
29
@@ -32,7 +33,7 @@ The rxExecBy function in RevoScaleR is designed for high-volume parallel process
32
33
4. When the function executes, the data queries are processed in parallel if your environment supports it. Moreover, the modeling or transformation tasks are distributed among individual cores and executed in parallel. Supported compute context for thee operations include RxSpark and RxInSQLServer.
33
34
5. Multiple results are returned.
34
35
35
-
## rxExecBy Syntax and Examples
36
+
## rxExecBy syntax and examples
36
37
37
38
**rxExecBy** takes four inputs, one of the inputs being a dataset or data source object that can be partitioned on a specified **key** column. The function returns an output for each partition. The form of the output depends on the function that is passed as an argument. For example, if you pass a modeling function such as rxLinMod, you could return a separate trained model for each partition of the dataset.
# Save and load R objects from SQL Server using ODBC
14
+
# Use ODBC to save and load R objects in SQL Server Machine Learning Services
15
15
[!INCLUDE [SQL Server 2016 and later](../../includes/applies-to-version/sqlserver2016.md)]
16
16
17
-
SQL Server R Services can store serialized R objects in a table and then load the object from the table as needed, without you having to re-run the R code or retrain the model. This ability to save R objects in a database is critical for scenarios such as training and saving a model, and then using it later for scoring or analysis.
17
+
Learn how to use the **RevoScaleR** package to store serialized R objects in a table and then load the object from the table as needed with [SQL Server Machine Learning Services](../sql-server-machine-learning-services.md). This can be used when training and saving a model, and then use it later for scoring or analysis.
18
18
19
-
To improve performance of this critical step, the **RevoScaleR** package now includes new serialization and deserialization functions that greatly improve performance, and store the object more compactly. This article describes these functions and how to use them.
19
+
## RevoScaleR package
20
20
21
-
## Overview
22
-
23
-
The **RevoScaleR** package now includes new functions that make it easier to save R objects to SQL Server and then read the objects from the SQL Server table. In general, each function call uses a simple key value store, in which the key is the name of the object, and the value associated with the key is the varbinary R object to be moved in or out of a table.
21
+
The **RevoScaleR** package includes serialization and deserialization functions that can R objects compactly to SQL Server and then read the objects from the table. In general, each function call uses a simple key value store, in which the key is the name of the object, and the value associated with the key is the varbinary R object to be moved in or out of a table.
24
22
25
23
To save R objects to SQL Server directly from an R environment, you must:
26
24
@@ -40,7 +38,7 @@ By default, any object that you call from R to move to SQL Server is serialized
40
38
41
39
-`rxListKeys` lists as key-value pairs all the available objects. This helps you determine the names and versions of the R objects.
42
40
43
-
For detailed help on the syntax of each function, use R help. Details are also available in the [ScaleR reference](/r-server/r-reference/revoscaler/revoscaler).
41
+
For detailed help on the syntax of each function, use R help. Details are also available in the [ScaleR reference](/machine-learning-server/r-reference/revoscaler/revoscaler).
44
42
45
43
## How to store R objects in SQL Server using ODBC
46
44
@@ -109,4 +107,8 @@ This procedure demonstrates how you can use the new functions to load a model fr
109
107
110
108
```R
111
109
infertLogit2<- rxReadObject(ds, "logit.model")
112
-
```
110
+
```
111
+
112
+
## Next steps
113
+
114
+
+[What is SQL Server Machine Learning Services?](../sql-server-machine-learning-services.md)
0 commit comments