Using show with churn prediciton model raises a TypeError

User 2568 | 6/6/2016, 11:20:18 PM

I took the model created in the recent churn prediction webinar, i.e.,

model = gl.churn_predictor.create(train_trial,
                              user_data = userdata,
                              churn_period = churn_period_trial,
                              time_boundaries = [CB_aug, CB_sep, CB_oct])

and tried to show the Evaluation view using


I get the error TypeError: datetime.timedelta(1) is not JSON serializable

if I try this using the browser target, I get the error

Lost connection to GraphLab Create Python session. Call .show() again from Python to re-invoke Canvas.


User 1190 | 6/7/2016, 4:44:20 AM

Hi Kevin,

Please try out this API: