From 78202cc8a3dc0fabd519fc4550a8b94a226e5728 Mon Sep 17 00:00:00 2001 From: o9o9 Date: Fri, 13 Oct 2017 22:36:39 +0900 Subject: [PATCH] Update TrainTipPredictionModelRxPy.sql Fixed to API specification change of RevoScalePy due to version upgrade from SQL Server 2017 CTP to SQL Server 2017 RC This file is used by In-database Python Analytics tutorial(https://docs.microsoft.com/en-us/sql/advanced-analytics/tutorials/sqldev-in-database-python-for-sql-developers). --- Misc/PythonSQL/TrainTipPredictionModelRxPy.sql | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Misc/PythonSQL/TrainTipPredictionModelRxPy.sql b/Misc/PythonSQL/TrainTipPredictionModelRxPy.sql index c3f98342..8bfadba2 100644 --- a/Misc/PythonSQL/TrainTipPredictionModelRxPy.sql +++ b/Misc/PythonSQL/TrainTipPredictionModelRxPy.sql @@ -20,11 +20,10 @@ BEGIN @script = N' import numpy import pickle -import pandas -from revoscalepy.functions.RxLogit import rx_logit_ex -from revoscalepy.functions.RxPredict import rx_predict_ex +from revoscalepy.functions.RxLogit import rx_logit +from revoscalepy.functions.RxPredict import rx_predict -logitObj = rx_logit_ex("tipped ~ passenger_count + trip_distance + trip_time_in_secs + direct_distance", data=InputDataSet); +logitObj = rx_logit("tipped ~ passenger_count + trip_distance + trip_time_in_secs + direct_distance", data=InputDataSet); ## Serialize model trained_model = pickle.dumps(logitObj)