Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty Metric Panel #17

Open
lukedex opened this issue Apr 22, 2024 · 0 comments
Open

Empty Metric Panel #17

lukedex opened this issue Apr 22, 2024 · 0 comments

Comments

@lukedex
Copy link

lukedex commented Apr 22, 2024

Hi all,

When using an EBM with no missing values (I saw this was an issue before), and feature types of 'continuous' and 'nominal' only. I see no information in my metric panel when passing sample_data.json.

I have to subset my data as loading all 200k samples of my test dataframe causes an 'Out-of-memory- error in my google chrome browser.

import gamchanger as gc
from json import dump

Extract model weights

model_data = gc.get_model_data(ebm)

Generate sample data

sample_data = gc.get_sample_data(ebm, X_test.tail(2000), y_test.tail(2000))

Save to model.json and sample.json

dump(model_data, open('./model.json', 'w'))
dump(sample_data, open('./sample.json', 'w'))

Load GAM Changer with the model and sample data

import gamchanger as gc
gc.visualize(ebm, model_data=model_data, sample_data=sample_data)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant