Skip to content

Releases: shap/shap

v0.45.0

08 Mar 11:43
56394f1
Compare
Choose a tag to compare

This is a fairly significant release containing a number of breaking changes.

Thank you to a number of new contributors for their contributions to this release! We are eager to grow the pool of maintainers, so please do get in touch on #3559 if you are interested in being part of the team.

What's Changed

Breaking changes

  • Dropped support for 3.8 in #3414
  • Changed type and shape of returned SHAP values in some cases, to be consistent with model outputs. SHAP values for models with multiple outputs are now np.ndarray rather than list, by @CloseChoice in #3318
  • Removed deprecated feature_dependence parameters in TreeExplainer and LinearExplainer by @thatlittleboy in #3340
  • Removed deprecated alias for Coefficient by @connortann in #3511

Added

Fixed

.. plus a large number of documentation, testing and other maintenance updates by @CloseChoice , @yuanx749 , @LakshmanKishore and others.

New Contributors

Full Changelog: v0.44.1...v0.45.0

v0.44.1

25 Jan 13:08
1b7dead
Compare
Choose a tag to compare

Patch release to fix an issue with the display of force plots.

Fixed

  • Fixed HTML issue affecting display of force plots by @CloseChoice in #3464
  • Fixed calculation of interactions values for catboost regressors by @CloseChoice in #3459
  • Update XGBoost parsing to use ubjson format, replacing deprecated binary format by @CloseChoice in #3345

Other

  • Further improvements to documentation

Full Changelog: v0.44.0...v0.44.1

v0.44.0

07 Dec 12:14
ed96251
Compare
Choose a tag to compare

This release contains a number enhancements and bug fixes.

What's Changed

Added

Fixed

Documentation

New Contributors

Full Changelog: v0.43.0...V0.44.0

v0.43.0

09 Oct 09:41
4316c41
Compare
Choose a tag to compare

What's Changed

This release contains a number of bug fixes and improvements.

Following the NEP 29 deprecation policy, this release drops support for python 3.7.

Breaking changes

  • Removed the deprecated Boston dataset by @thatlittleboy in #3316
  • The shape of Explanation.base_values has been standardised between different TreeExplainer models to always be of shape (N,) and not (N,1). By @thatlittleboy in #3121

Added

  • Added additivity check to Pytorch DeepExplainer (activated by default) by @noxthot in #3265
  • Added flag to allow the printing of the mean SHAP value in the legend of a multi-output bar plot. By @101AlexMartin in #3062
  • Added heatmap and violin plot to top-level API by @connortann in #3157
  • Replaced all tqdm imports with tqdm.auto by @owenlamont in #3199

Fixed

  • Fixed segmentation faults on MacOS with lightgbm tests (with newer libomp versions) by @thatlittleboy in #3093
  • Support LightGBM ensemble containing single leaf trees (stump) by @thatlittleboy in #3094
  • Fixed conversion DataFrame to ndarray for Explanation.data by @danieleongari in #3131
  • Fixed waterfall plot on explanations of sklearn tree models by @connortann in #3138
  • Fixed pandas input for gradient explainer by @Koen-Git in #3153
  • Fixed slicing of feature_names in Explanation objects with square .values by @thatlittleboy in #3126
  • Correct xlim in force_matplotlib in cases where the signs of force are all the same by @zaburo-ch in #2839
  • Fixed ngboost explanations when col_sample < 1 by @CloseChoice in #3294
  • Fixed torch additivity check in PyTorch DeepExplainer by @noxthot in #3281
  • Replaced print statements with warnings in DeepExplainer by @znacer in #3264
  • Replace deprecated register_backward_hook() by @noxthot in #3259
  • Fixed deprecated use of xgboost early_stopping_rounds by @CloseChoice in #3306
  • Fixed 3rd party deprecation warnings: numba, xgboost, typing, distutils by @connortann in #3084
  • Updated the Javascript bundle to update deprecated dependencies by @connortann in #2974

There have also been a large number of improvements to the tutorials and examples, by @connortann, @znacer, @arshiaar, @thatlittleboy, @dsgibbons, @owenlamont and @CloseChoice

New Contributors

Full Changelog: v0.42.1...v0.43.0

v0.42.1

15 Jul 11:15
36556dd
Compare
Choose a tag to compare

Patch release to provide wheels for a broader range of architectures.

Added

Fixed

Full Changelog: v0.42.0...v0.42.1

v0.42.0

06 Jul 17:38
c94ebab
Compare
Choose a tag to compare

This release incorporates many changes that were originally contributed by the SHAP community via @dsgibbons's Community Fork, which has now been merged into the main shap repository. PRs from this origin are labelled here as fork#123.

This will be the last release that supports python 3.7.

Added

Fixed

Changed

Removed

Maintenance

v0.41.0

16 Jun 00:31
510c4b6
Compare
Choose a tag to compare

Lots of bugs fixes and API improvements.

v0.40.0

20 Oct 18:36
429fb3e
Compare
Choose a tag to compare

This release contains many bugs fixes and lots of new functionality, specifically for transformer based NLP models. Some highlights include:

  • New plots, bug fixes, docs, and features for NLP model explanations (see docs for details).
  • important permutation explainer performance fix by @sander-sn
  • New joint scatter plots to plot many at once on the same y-scale
  • better tree model memory usage by @morriskurz
  • new docs by @coryroyce
  • new wheel building by @PrimozGodec
  • dark mode improvements for the docs by @gialmisi
  • api tweaks by @c56pony @nsorros @jebarb

v0.39.0

03 Mar 18:38
Compare
Choose a tag to compare

Lots of new text explainer work courtesy of @ryserrao and serialization courtesy of @vivekchettiar! (will note all the other changes later)

v0.38.1

15 Jan 18:02
54e6f0f
Compare
Choose a tag to compare

Fixes a version mismatch with the v0.38.0 release and serialization updates.