linkedin / FastTreeSHAP

Fast SHAP value computation for interpreting tree-based models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'numpy' has no attribute 'bool'

timothywong731 opened this issue · comments

Please update fasttreeshap/maskers/_tabular.py:81 - change np.bool to bool for numpy future version proof. np.bool has been deprecated.

AttributeError: module 'numpy' has no attribute 'bool'.
`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:

Search and replace all np.bool and replace with bool