Skip to content

Commit

Permalink
upgrade econml to latest version of shap (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft authored Apr 5, 2022
1 parent 289c541 commit 415cb80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion econml/tests/test_shap.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ def eta_sample(n):

# test shap could generate the plot from the shap_values
heatmap(shap_values1["Y0"]["orange"], show=False)
waterfall(shap_values1["Y0"]["orange"][6], show=False)
if shap.__version__ != "0.40.0":
# waterfall is broken in this version, fixed by https://github.com/slundberg/shap/pull/2444
waterfall(shap_values1["Y0"]["orange"][6], show=False)
scatter(shap_values1["Y0"]["orange"][:, "A"], show=False)
bar(shap_values1["Y0"]["orange"], show=False)
beeswarm(shap_values1["Y0"]["orange"], show=False)
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ install_requires =
joblib >= 0.13.0
statsmodels >= 0.10
pandas
shap >= 0.38.1, < 0.40.0
shap >= 0.38.1, < 0.41.0
dowhy < 0.8
lightgbm
test_suite = econml.tests
Expand Down

0 comments on commit 415cb80

Please sign in to comment.