- Start a Jupyter notebook
- Train a new EBM model, or load a trained model
- Copy and run the python code in a new cell
- [optional] Sample all positive cases from your training set to GAM Changer's sample data (python code)
- Generate model data and sample data
model_data = get_model_data(ebm)
sample_data = get_sample_data(ebm, x_test, y_test)
dump(model_data, open('./model.json', 'w'))
dump(sample_data, open('./sample.json', 'w'))
- Drag the
model.json
to the left panel (1) - Drag the
sample.json
to the right panel (2) - Enjoy your GAM Changing experience!