Skip to content

Empty Metric Panel #17

@lukedex

Description

@lukedex

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions