Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Update TrainTipPredictionModelRxPy.sql #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Misc/PythonSQL/TrainTipPredictionModelRxPy.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down