File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
samples/features/sql-big-data-cluster/machine-learning/sql/python Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 16
16
, @input_query nvarchar (max )
17
17
, @train_script nvarchar (max )
18
18
19
- -- Set the input query for training. We will use 80% of the data.
19
+ -- Set the input query for training. We will use 80% of the data.
20
20
SET @input_query = N'
21
21
SELECT TOP(80) PERCENT SIGN(q.clicks_in_category) AS book_category
22
22
, q.college_education
@@ -32,8 +32,8 @@ SELECT TOP(80) PERCENT SIGN(q.clicks_in_category) AS book_category
32
32
, q.clicks_in_9
33
33
FROM web_clickstreams_hdfs_book_clicks as q
34
34
' ;
35
- -- Training R script that uses rxLogit function from RevoScaleR package (Microsoft R Server) to generate model to predict book_category click(s).
36
- SET @train_script = N'
35
+ -- Training that uses rx_logit function from revoscalepy package (Microsoft ML Server) to generate model to predict book_category click(s).
36
+ SET @train_script = N'
37
37
# build classification model to predict book_category
38
38
import pickle
39
39
from revoscalepy import rx_logit, rx_serialize_model
@@ -92,4 +92,4 @@ SELECT TOP(100)
92
92
, w .clicks_in_9 AS [Sports & Outdoors]
93
93
FROM PREDICT(MODEL = @sales_model, DATA = web_clickstreams_hdfs_book_clicks as w) WITH (" book_category_Pred" float ) as p
94
94
WHERE p .book_category_Pred <> SIGN (w .clicks_in_category );
95
- GO
95
+ GO
You can’t perform that action at this time.
0 commit comments