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
- @101AlexMartin made their first contribution in #3062
- @znacer made their first contribution in #3112
- @danieleongari made their first contribution in #3131
- @Koen-Git made their first contribution in #3153
- @pre-commit-ci made their first contribution in #3173
- @owenlamont made their first contribution in #3199
- @arshiaar made their first contribution in #3201
- @dsgibbons made their first contribution in #3200
- @noxthot made their first contribution in #3265
- @zaburo-ch made their first contribution in #2839
- @CloseChoice made their first contribution in #3282
Full Changelog: v0.42.1...v0.43.0