py-why / EconML

ALICE (Automated Learning and Intelligence for Causation and Economics) is a Microsoft Research project aimed at applying Artificial Intelligence concepts to economic decision making. One of its goals is to build a toolkit that combines state-of-the-art machine learning techniques with econometrics in order to bring automation to complex causal inference problems. To date, the ALICE Python SDK (econml) implements orthogonal machine learning algorithms such as the double machine learning work of Chernozhukov et al. This toolkit is designed to measure the causal effect of some treatment variable(s) t on an outcome variable y, controlling for a set of features x.
https://www.microsoft.com/en-us/research/project/alice/
Other
3.64k stars 689 forks source link

Shap Bug #817

Open joaovitorfranco opened 9 months ago

joaovitorfranco commented 9 months ago

I'm getting a numpy error when I'm running shap. I'm using: econml 0.14.1 numpy 1.24.3


`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:```
joaovitorfranco commented 9 months ago

I was able to solve this by downgrading numpy to 1.23.1.

kbattocchi commented 8 months ago

Sorry for the inconvenience; our next release should allow the latest versions of shap and numpy and should avoid this issue.

kbattocchi commented 7 months ago

We've released the beta (v0.15.0b1) for our next version, which should support the latest shap and numpy releases. You can try it out by running pip install -U --pre econml

dhimmel commented 6 months ago

Ah I see https://pypi.org/project/econml/0.15.0b1/. Is a general release of v15 coming soon? Would help it get to conda-forge