pair_preprocessor_ is None
esoreq opened this issue · 1 comments
First, thanks for adding this module - it is a great idea and a great contribution to transparent models.
When running your code there seems to be an old (I think) mapping in line 430 in gamchanger.py
# Use the ebm's mapping to map level name to bin index ebm_col_mapping = ebm_copy.pair_preprocessor_.col_mapping_
I think this relates to earlier versions of EBM
When I change this line to
ebm_col_mapping = ebm_copy.feature_groups_
The adjusted model is properly exported
Hi @esoreq, thanks for raising the issue. It seems you are looking at an older version of gamchanger.py
? I made a lot of changes in 093a6b6, and the lines you refer too seem to be different now.
gam-changer/notebook-widget/gamchanger/gamchanger.py
Lines 526 to 527 in aba94f6
Can you try to update gamchanger
to the latest version (0.1.13) and try again? pip install -U gamchanger
. Let me know if you still encounter an error. Thanks!!