linkedin / FastTreeSHAP

Fast SHAP value computation for interpreting tree-based models
BSD 2-Clause "Simplified" License
500 stars 30 forks source link

'numpy' has no attribute 'bool' #20

Closed timothywong731 closed 1 year ago

timothywong731 commented 1 year ago

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:
timothywong731 commented 1 year ago

Search and replace all np.bool and replace with bool