pypi shap 0.53.0

4 hours ago

Highlights

  • Python 3.15 support: SHAP now builds wheels and runs tests against Python 3.15, including pre-releases. By @CloseChoice in #5143
  • Migration away from Numba and llvmlite: core utilities have been migrated to nanobind/C++, allowing Numba and llvmlite to be removed as required dependencies and enabling support for free-threaded Python. By @daidahao and @CloseChoice in #5081, #5082, #5088, #5089, #5090, #5091, #5092, #5117, #5129
  • GPU TreeSHAP improvements: LightGBM categorical GPU TreeSHAP support has been added, alongside TreeExplainer changes and CPU/GPU equivalence testing for categorical features. By @RAMitchell and @CloseChoice in #5020 and #5026
  • Additional build targets: add Windows ARM64 and Emscripten builds. By @ndabas and @CloseChoice in #5137 and #5162

What's Changed

Breaking changes

  • Match KernelExplainer DataFrame columns to the background by name. Duplicated column names now raise an error, but worked previously. By @Atishyy27 in #5164.

Fixes

  • Fix int16 overflow of node indices in independent TreeSHAP, which could cause segmentation faults for trees with more than 32,767 nodes. By @clark874 in #5163
  • Refactor short circuiting of tree_path_dependent SHAP calculation by @CloseChoice in #5069
  • Remove outdated TensorFlow version warnings from DeepExplainer by @SushantTusharJoshi in #5126

Enhancements

Other Changes

New Contributors

Full Changelog: v0.52.0...v0.53.0

Don't miss a new shap release

NewReleases is sending notifications on new releases.