File tree Expand file tree Collapse file tree
samples/features/sql-big-data-cluster/machine-learning/sql/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 , @input_query nvarchar (max )
1717 , @train_script nvarchar (max )
1818
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.
2020 SET @input_query = N'
2121SELECT TOP(80) PERCENT SIGN(q.clicks_in_category) AS book_category
2222 , q.college_education
@@ -32,8 +32,8 @@ SELECT TOP(80) PERCENT SIGN(q.clicks_in_category) AS book_category
3232 , q.clicks_in_9
3333 FROM web_clickstreams_hdfs_book_clicks as q
3434' ;
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'
3737# build classification model to predict book_category
3838import pickle
3939from revoscalepy import rx_logit, rx_serialize_model
@@ -92,4 +92,4 @@ SELECT TOP(100)
9292 , w .clicks_in_9 AS [Sports & Outdoors]
9393 FROM PREDICT(MODEL = @sales_model, DATA = web_clickstreams_hdfs_book_clicks as w) WITH (" book_category_Pred" float ) as p
9494 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