EconML icon indicating copy to clipboard operation
EconML copied to clipboard

Shap Bug

Open joaovitorfranco opened this issue 1 year ago • 4 comments

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 avatar Sep 29 '23 13:09 joaovitorfranco

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

joaovitorfranco avatar Oct 02 '23 13:10 joaovitorfranco

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

kbattocchi avatar Oct 26 '23 17:10 kbattocchi

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

kbattocchi avatar Nov 13 '23 19:11 kbattocchi

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

dhimmel avatar Dec 22 '23 17:12 dhimmel