linkedin / FastTreeSHAP

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

change np.int to np.int32 #22

Closed julnow closed 1 year ago

julnow commented 1 year ago

Fixes https://github.com/linkedin/FastTreeSHAP/issues/20 and other problems with np.int, np.float deprecated in NumPy 1.20

jlyang1990 commented 1 year ago

Thanks @julnow for pointing out the outdated numpy aliases issue and making this PR! As discussed in another PR https://github.com/linkedin/FastTreeSHAP/pull/21, we prefer removing the regular builtins over using the specific numpy scalar type. Therefore we decide to merge PR https://github.com/linkedin/FastTreeSHAP/pull/21 and close this PR.