EconML
EconML copied to clipboard
Shap Bug
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:```
I was able to solve this by downgrading numpy to 1.23.1.
Sorry for the inconvenience; our next release should allow the latest versions of shap and numpy and should avoid this issue.
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
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