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/machine-learning-services/python/getting-started/rental-prediction/README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This sample shows how to create a predictive model in Python and operationalize
7
7
[About this sample](#about-this-sample)<br/>
8
8
[Before you begin](#before-you-begin)<br/>
9
9
[Sample details](#sample-details)<br/>
10
-
[Related links](#related-links)<br/>
10
+
11
11
12
12
13
13
<aname=about-this-sample></a>
@@ -45,13 +45,13 @@ Download a DB backup file and restore it using Setup.sql. [Download DB](https://
45
45
46
46
## Run this sample
47
47
1. From SQL Server Management Studio or SQL Server Data Tools connect to your SQL Server vNext database and execute setup.sql to restore the sample DB you have downloaded </br>
48
-
2. From SQL Server Management Studio or SQL Server Data Tools, open the Predictive Model Python.sql script </br>
48
+
2. From SQL Server Management Studio or SQL Server Data Tools, open the rental_prediction.sql script </br>
49
49
This script sets up: </br>
50
50
Necessary tables </br>
51
51
Creates stored procedure to train a model </br>
52
52
Creates a stored procedure to predict using that model </br>
53
53
Saves the predicted results to a DB table </br>
54
-
3. You can also try the python script on its own. Just remember to point the Python environment to the corresponding path "C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\PYTHON_SERVICES" if you run in-db Python Server, or
54
+
3. You can also try the Python script on its own, connecting to SQL Server and getting data using RevoScalePy Rx functions. Just remember to point the Python environment to the corresponding path "C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\PYTHON_SERVICES" if you run in-db Python Server, or
55
55
"C:\Program Files\Microsoft SQL Server\140\PYTHON_SERVER" if you have the standalone Machine Learning Server installed.
56
56
57
57
<aname=sample-details></a>
@@ -64,9 +64,10 @@ This sample shows how to create a predictive model with Python and generate pred
64
64
The Python script that generates a predictive model and uses it to predict rental counts
65
65
66
66
### rental_prediction.sql
67
-
Takes the Python code in Predictive Model.py and deploys it inside SQL Server. Creating stored procedures and tables for training, storing models and creating stored procedures for prediction.
68
-
67
+
Takes the Python code in rental_prediction.py and deploys it inside SQL Server. Creating stored procedures and tables for training, storing models and creating stored procedures for prediction.
69
68
69
+
### setup.sql
70
+
Restores the sample DB (Make sure to update the path to the .bak file)
0 commit comments