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

TypeError: waterfall() got an unexpected keyword argument 'feature_names' #24

Closed
turgut090 opened this issue Oct 23, 2020 · 5 comments
Closed

Comments

@turgut090
Copy link

Hi.
Pypi version of fastinference throws:

exp.waterfall_plot(row_idx=10)
TypeError: waterfall() got an unexpected keyword argument 'feature_names' 
@muellerzr
Copy link
Owner

Thanks! I noticed this too. It seems there was a radical change recently in shap. I'll look and try to pin the version today/tomorrow. This also would explain the sudden time-scale difference when passing in 100 rows into the interpreter

@muellerzr
Copy link
Owner

@henry090 can you try installing from git and using it?

!pip install git+https://github.com/muellerzr/fastinference

Same imports

@turgut090
Copy link
Author

I get the same error:

TypeError: waterfall() got an unexpected keyword argument 'feature_names'

Detailed traceback: 
  File "/Users/turgutabdullayev/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/fastinference/tabular/shap/interp.py", line 60, in waterfall_plot
    return shap.waterfall_plot(exp_val, shap_vals[row_idx,:], feature_names=feat_names, **kwargs)

@muellerzr
Copy link
Owner

This has been fixed now. Reopen if you still have issues but I can confirm it in colab

@turgut090
Copy link
Author

Thanks. In fact, I manually installed shap==0.35.0 and it worked.

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

No branches or pull requests

2 participants