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

Commit ea2aec2

Browse files
committed
Updated CAB downloads page, plus minor edits on a python tutorial
1 parent 7dff3ed commit ea2aec2

2 files changed

Lines changed: 66 additions & 56 deletions

File tree

docs/advanced-analytics/install/sql-ml-cab-downloads.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: R and Python CAB and package downloads for SQL Server 2017 Machine
44
ms.prod: sql
55
ms.technology: machine-learning
66

7-
ms.date: 01/19/2019
7+
ms.date: 04/01/2019
88
ms.topic: conceptual
99
author: dphansen
1010
ms.author: davidph
@@ -31,8 +31,13 @@ CAB files are listed in reverse chronological order. When you download the CAB f
3131

3232
|Release |Component | Download link | Issues addressed |
3333
|---------|----------|----------------|------------------|
34+
|**[SQL Server 2017 CU14](https://support.microsoft.com/help/4484710/)** | | | |
35+
| | Microsoft R Open | [SRO_3.3.3.1400_1033.cab](https://go.microsoft.com/fwlink/?LinkId=2073898&clcid=1033)| Packages are signed. |
36+
| | R Server |[SRS_9.2.0.1400_1033.cab](https://go.microsoft.com/fwlink/?LinkId=2069739&clcid=1033)| Packages are signed. |
37+
| | Microsoft Python Open | [SPO_9.2.0.1400_1033.cab](https://go.microsoft.com/fwlink/?LinkId=2073897&clcid=1033)| Packages are signed. |
38+
| | Python Server |[SPS_9.2.0.1400_1033.cab](https://go.microsoft.com/fwlink/?LinkId=2071421&clcid=1033)| Packages are signed. |
3439
|**[SQL Server 2017 CU13](https://support.microsoft.com/help/4466404)** | | | |
35-
| | Microsoft R Open | [SRO_3.3.3.300_1033.cab](https://go.microsoft.com/fwlink/?LinkId=863894)| No change from previous versions. |
40+
| | Microsoft R Open | [SRO_3.3.3.1300_1033.cab](https://go.microsoft.com/fwlink/?LinkId=863894)| No change from previous versions. |
3641
| | R Server |[SRS_9.2.0.1300_1033.cab](https://go.microsoft.com/fwlink/?LinkId=2038263&clcid=1033)| Contains a fix for upgrading an [operationalized standalone R Server](https://docs.microsoft.com/machine-learning-server/what-is-operationalization), as installed through SQL Server Setup. Use the CU13 CABs and follow [these instructions](sql-machine-learning-standalone-windows-install.md#apply-cu) to apply the update. |
3742
| | Microsoft Python Open | [SPO_9.2.0.24_1033.cab](https://go.microsoft.com/fwlink/?LinkId=851502)| No change from previous versions. |
3843
| | Python Server |[SPS_9.2.0.1300_1033.cab](https://go.microsoft.com/fwlink/?LinkId=2038197&clcid=1033)| Contains a fix for upgrading an [operationalized standalone Python Server](https://docs.microsoft.com/machine-learning-server/what-is-operationalization), as installed through SQL Server Setup. Use the CU13 CABs and follow [these instructions](sql-machine-learning-standalone-windows-install.md#apply-cu) to apply the update. |
@@ -86,14 +91,19 @@ For SQL Server 2016 R Services, baseline releases are either the RTM version or
8691

8792
|Release |Download link |
8893
|---------|---------------|
89-
|**SQL Server 2016 SP2 CU1-CU4** |
94+
|**SQL Server 2016 SP2 CU6** |
95+
|Microsoft R Open |[SRO_3.2.2.20100_1033.cab](https://go.microsoft.com/fwlink/?LinkId=2079936&clcid=1033)|
96+
|Microsoft R Server |[SRS_8.0.3.20100_1033.cab](https://go.microsoft.com/fwlink/?LinkId=2079933&clcid=1033)|
97+
|**SQL Server 2016 SP2 CU1-CU5** |
9098
|Microsoft R Open |[SRO_3.2.2.16000_1033.cab](https://go.microsoft.com/fwlink/?LinkId=836819)|
9199
|Microsoft R Server |[SRS_8.0.3.20000_1033.cab](https://go.microsoft.com/fwlink/?LinkId=866038)|
92-
|**SQL Server 2016 SP1 CU4-CU10** |
93100
|**SQL Server 2016 SP2** |
94101
|Microsoft R Open |[SRO_3.2.2.16000_1033.cab](https://go.microsoft.com/fwlink/?LinkId=836819)|
95102
|Microsoft R Server |[SRS_8.0.3.17000_1033.cab](https://go.microsoft.com/fwlink/?LinkId=850317)|
96-
|**SQL Server 2016 SP1 CU1-CU3** |
103+
|**SQL Server 2016 SP1 CU14** |
104+
|Microsoft R Open |[SRO_3.2.2.16100_1033.cab](https://go.microsoft.com/fwlink/?LinkId=2080130&clcid=1033)|
105+
|Microsoft R Server |[SRS_8.0.3.17200_1033.cab](https://go.microsoft.com/fwlink/?LinkId=2079935&clcid=1033)|
106+
|**SQL Server 2016 SP1 CU1-CU13** |
97107
|Microsoft R Open |[SRO_3.2.2.16000_1033.cab](https://go.microsoft.com/fwlink/?LinkId=836819)|
98108
|Microsoft R Server |[SRS_8.0.3.16000_1033.cab](https://go.microsoft.com/fwlink/?LinkId=836818)|
99109
|**SQL Server 2016 SP1** |

docs/advanced-analytics/tutorials/sqldev-py3-explore-and-visualize-the-data.md

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -76,56 +76,56 @@ The stored procedure returns a serialized Python `figure` object as a stream of
7676
DROP PROCEDURE IF EXISTS PyPlotMatplotlib;
7777
GO
7878

79-
CREATE PROCEDURE [dbo].[PyPlotMatplotlib]
80-
AS
81-
BEGIN
82-
SET NOCOUNT ON;
83-
DECLARE @query nvarchar(max) =
84-
N'SELECT cast(tipped as int) as tipped, tip_amount, fare_amount FROM [dbo].[nyctaxi_sample]'
85-
EXECUTE sp_execute_external_script
86-
@language = N'Python',
87-
@script = N'
88-
import matplotlib
89-
matplotlib.use("Agg")
90-
import matplotlib.pyplot as plt
91-
import pandas as pd
92-
import pickle
93-
94-
fig_handle = plt.figure()
95-
plt.hist(InputDataSet.tipped)
96-
plt.xlabel("Tipped")
97-
plt.ylabel("Counts")
98-
plt.title("Histogram, Tipped")
99-
plot0 = pd.DataFrame(data =[pickle.dumps(fig_handle)], columns =["plot"])
100-
plt.clf()
101-
102-
plt.hist(InputDataSet.tip_amount)
103-
plt.xlabel("Tip amount ($)")
104-
plt.ylabel("Counts")
105-
plt.title("Histogram, Tip amount")
106-
plot1 = pd.DataFrame(data =[pickle.dumps(fig_handle)], columns =["plot"])
107-
plt.clf()
108-
109-
plt.hist(InputDataSet.fare_amount)
110-
plt.xlabel("Fare amount ($)")
111-
plt.ylabel("Counts")
112-
plt.title("Histogram, Fare amount")
113-
plot2 = pd.DataFrame(data =[pickle.dumps(fig_handle)], columns =["plot"])
114-
plt.clf()
115-
116-
plt.scatter( InputDataSet.fare_amount, InputDataSet.tip_amount)
117-
plt.xlabel("Fare Amount ($)")
118-
plt.ylabel("Tip Amount ($)")
119-
plt.title("Tip amount by Fare amount")
120-
plot3 = pd.DataFrame(data =[pickle.dumps(fig_handle)], columns =["plot"])
121-
plt.clf()
122-
123-
OutputDataSet = plot0.append(plot1, ignore_index=True).append(plot2, ignore_index=True).append(plot3, ignore_index=True)
124-
',
79+
CREATE PROCEDURE [dbo].[PyPlotMatplotlib]
80+
AS
81+
BEGIN
82+
SET NOCOUNT ON;
83+
DECLARE @query nvarchar(max) =
84+
N'SELECT cast(tipped as int) as tipped, tip_amount, fare_amount FROM [dbo].[nyctaxi_sample]'
85+
EXECUTE sp_execute_external_script
86+
@language = N'Python',
87+
@script = N'
88+
import matplotlib
89+
matplotlib.use("Agg")
90+
import matplotlib.pyplot as plt
91+
import pandas as pd
92+
import pickle
93+
94+
fig_handle = plt.figure()
95+
plt.hist(InputDataSet.tipped)
96+
plt.xlabel("Tipped")
97+
plt.ylabel("Counts")
98+
plt.title("Histogram, Tipped")
99+
plot0 = pd.DataFrame(data =[pickle.dumps(fig_handle)], columns =["plot"])
100+
plt.clf()
101+
102+
plt.hist(InputDataSet.tip_amount)
103+
plt.xlabel("Tip amount ($)")
104+
plt.ylabel("Counts")
105+
plt.title("Histogram, Tip amount")
106+
plot1 = pd.DataFrame(data =[pickle.dumps(fig_handle)], columns =["plot"])
107+
plt.clf()
108+
109+
plt.hist(InputDataSet.fare_amount)
110+
plt.xlabel("Fare amount ($)")
111+
plt.ylabel("Counts")
112+
plt.title("Histogram, Fare amount")
113+
plot2 = pd.DataFrame(data =[pickle.dumps(fig_handle)], columns =["plot"])
114+
plt.clf()
115+
116+
plt.scatter( InputDataSet.fare_amount, InputDataSet.tip_amount)
117+
plt.xlabel("Fare Amount ($)")
118+
plt.ylabel("Tip Amount ($)")
119+
plt.title("Tip amount by Fare amount")
120+
plot3 = pd.DataFrame(data =[pickle.dumps(fig_handle)], columns =["plot"])
121+
plt.clf()
122+
123+
OutputDataSet = plot0.append(plot1, ignore_index=True).append(plot2, ignore_index=True).append(plot3, ignore_index=True)
124+
',
125125
@input_data_1 = @query
126-
WITH RESULT SETS ((plot varbinary(max)))
127-
END
128-
GO
126+
WITH RESULT SETS ((plot varbinary(max)))
127+
END
128+
GO
129129
```
130130

131131
2. Now run the stored procedure with no arguments to generate a plot from the data hard-coded as the input query.
@@ -156,7 +156,7 @@ The stored procedure returns a serialized Python `figure` object as a stream of
156156
import pyodbc
157157
import pickle
158158
import os
159-
cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER={SERVER_NAME};DATABASE={DB_NAME};UID={USER_NAME};PWD={PASSWORD}')
159+
cnxn = pyodbc.connect('DRIVER=SQL Server;SERVER={SERVER_NAME};DATABASE={DB_NAME};UID={USER_NAME};PWD={PASSWORD}')
160160
cursor = cnxn.cursor()
161161
cursor.execute("EXECUTE [dbo].[PyPlotMatplotlib]")
162162
tables = cursor.fetchall()
@@ -173,7 +173,7 @@ The stored procedure returns a serialized Python `figure` object as a stream of
173173
import pyodbc
174174
import pickle
175175
import os
176-
cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER={SERVER_NAME};DATABASE={DB_NAME};Trusted_Connection=True;')
176+
cnxn = pyodbc.connect('DRIVER=SQL Server;SERVER={SERVER_NAME};DATABASE={DB_NAME};Trusted_Connection=True;')
177177
cursor = cnxn.cursor()
178178
cursor.execute("EXECUTE [dbo].[PyPlotMatplotlib]")
179179
tables = cursor.fetchall()

0 commit comments

Comments
 (0)