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,
                              user_id='CustomerID',
                              churn_period = churn_period_trial,
                              time_boundaries = [CB_aug, CB_sep, CB_oct])

and tried to show the Evaluation view using

gl.canvas.set_target('ipynb')
model.show(view='Evaluation')

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.

Comments

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

Hi Kevin,

Please try out this API: https://dato.com/products/create/docs/generated/graphlab.churnpredictor.ChurnPredictor.views.html#graphlab.churnpredictor.ChurnPredictor.views

-jay