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
Copy file name to clipboardExpand all lines: samples/features/r-services/Getting-Started/Customer-Clustering/README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
-
# Build a predictive model with SQL Server R Services
1
+
# Perform customer clustering with SQL Server R Services
2
2
3
-
This sample provides custom reports for SQL Server R Services that can be viewed from SQL Server Management Studio. The reports can be used to view configuration information, resource usage, execution statistics, active sessions and other information about R Services.
3
+
In this sample, we are going to get ourselves familiar with clustering.
4
+
Clustering can be explained as organizing data into groups where members of a group are similar in some way.
4
5
5
6
### Contents
6
7
@@ -14,13 +15,12 @@ This sample provides custom reports for SQL Server R Services that can be viewed
14
15
15
16
## About this sample
16
17
17
-
Predictive modeling is a powerful way to add intelligence to your application. It enables applications to predict outcomes against new data.
18
-
The act of incorporating predictive analytics into your applications involves two major phases:
19
-
model training and model operationalization.
18
+
We will be using the Kmeans algorithm to perform the clustering of customers. This can for example be used to target a specific group of customers for marketing efforts.
19
+
Kmeans clustering is an unsupervised learning algorithm that tries to group data based on similarities. Unsupervised learning means that there is no outcome to be predicted, and the algorithm just tries to find patterns in the data.
20
20
21
-
In this sample, you will learn how to create a predictive model in R and operationalize it with SQL Server 2016.
21
+
In this sample, you will learn how to perform Kmeans clustering in R and deploying the solution in SQL Server 2016.
22
22
23
-
Follow the step by step tutorial [here](http://aka.ms/sqldev/R) to walk through this sample.
23
+
Follow the step by step tutorial [here](https://www.microsoft.com/en-us/sql-server/developer-get-started/rclustering) to walk through this sample.
24
24
25
25
<!-- Delete the ones that don't apply -->
26
26
-**Applies to:** SQL Server 2016 (or higher)
@@ -35,7 +35,8 @@ Follow the step by step tutorial [here](http://aka.ms/sqldev/R) to walk through
35
35
## Before you begin
36
36
37
37
To run this sample, you need the following prerequisites.
38
-
Section 1 in the [tutorial](http://aka.ms/sqldev/R) covers all prerequisites.
38
+
Section 1 in the [tutorial](https://www.microsoft.com/en-us/sql-server/developer-get-started/rclustering) covers the prerequisites.
39
+
After that, you can download a DB backup file and restore it using Setup.sql. [Download DB](https://deve2e.azureedge.net/sqlchoice/static/tpcxbb_1gb.bak)
39
40
40
41
**Software prerequisites:**
41
42
@@ -48,14 +49,13 @@ Section 1 in the [tutorial](http://aka.ms/sqldev/R) covers all prerequisites.
48
49
<aname=sample-details></a>
49
50
## Sample Details
50
51
51
-
### PredictiveModel.R
52
+
### Customer Clustering.R
52
53
53
-
The R script that generates a predictive model and uses it to predict rental counts
54
+
The R script that performs clustering.
54
55
55
-
### PredictiveModel.SQL
56
-
57
-
Takes the R code in PredictiveModel.R and uses it inside SQL Server. Creating stored procedures for training and prediction.
56
+
### Customer Clustering.SQL
58
57
58
+
The SQL code to create stored procedure that performs clustering, and queries to verify and take further actions.
Copy file name to clipboardExpand all lines: samples/features/r-services/Getting-Started/Predictive-Modeling/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Build a predictive model with SQL Server R Services
2
2
3
-
This sample provides custom reports for SQL Server R Services that can be viewed from SQL Server Management Studio. The reports can be used to view configuration information, resource usage, execution statistics, active sessions and other information about R Services.
3
+
This sample shows how to create a predictive model in R and operationalize it with SQL Server 2016.
4
4
5
5
### Contents
6
6
@@ -35,7 +35,8 @@ Follow the step by step tutorial [here](http://aka.ms/sqldev/R) to walk through
35
35
## Before you begin
36
36
37
37
To run this sample, you need the following prerequisites.
38
-
Section 1 in the [tutorial](http://aka.ms/sqldev/R) covers all prerequisites.
38
+
Section 1 in the [tutorial](http://aka.ms/sqldev/R) covers the prerequisites.
39
+
After that, you can download a DB backup file and restore it using Setup.sql. [Download DB](https://deve2e.azureedge.net/sqlchoice/static/TutorialDB.bak)
0 commit comments