All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
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
.
- Added support for python 3.11 (fork#72 by @connortann).
- Added
n_points
parameter to all functions inshap.datasets
(fork#39 by @thatlittleboy). - Added
__call__
toKernelExplainer
(#2966 by @dwolfeu). - Added contributing guidelines (#2996 by @connortann).
- Fixed
plot.waterfall
to support yticklabels with boolean features (fork#58 by @dwolfeu). - Prevent
TreeExplainer.__call__
from throwing ValueError when passed a pandas DataFrame containing Categorical columns (fork#88 by @thatlittleboy). - Fixed sampling in
shap.datasets
to sample without replacement (fork#36 by @thatlittleboy). - Fixed an
UnboundLocalError
problem arising from passing a dictionary input toshap.plots.bar
(#3001 by @thatlittleboy). (fork#36 by @thatlittleboy). - Fixed an
UnboundLocalError
problem arising from passing a dictionary input toshap.plots.bar
(#3001 by @thatlittleboy). - Fixed tensorflow import issue with Pyspark when using
Gradient
(#2983 by @skamdar). - Fixed the aspect ratio of the colorbar in
shap.plots.heatmap
, and use theax
matplotlib API internally for plotting (#3040 by @thatlittleboy). - Fixed deprecation warnings for
numba>=0.44
(fork#9 and fork#68 by @connortann). - Fixed deprecation warnings for
numpy>=1.24
from numpy types (fork#7 by @dsgibbons). - Fixed deprecation warnings for
Ipython>=8
fromIpython.core.display
(fork#13 by @thatlittleboy). - Fixed deprecation warnings for
tensorflow>=2.11
fromtf.optimisers
(fork#16 by @simonangerbauer). - Fixed deprecation warnings for
sklearn>=1.2
fromsklearn.linear_model
(fork#22 by @dsgibbons). - Fixed deprecation warnings for
xgboost>=1.4
fromntree_limit
in tree explainer (#2987 by @adnene-guessoum). - Fixed build on Windows and MacOS (#3015 by @PrimozGodec; #3028, #3029 and #3031 by @connortann).
- Deprecated the Boston house price dataset (fork#38 by @thatlittleboy).
- Removed the unused
mimic.py
file andMimicExplainer
code (fork#53 by @thatlittleboy).
- Fixed failing unit tests (fork#29 by @dsgibbons, fork#20 by @simonangerbauer, #3044 and fork#24 by @connortann).
- Include CUDA GPU C extension files in the source distribution (#3009 by @jklaise).
- Fixed installation of package via setuptools (fork#51 by @thatlittleboy).
- Introduced a minimal set of
ruff
linting (fork#25, fork#26, fork#27, #2973, #2972 and #2976 by @connortann; #2968, #2986 by @thatlittleboy). - Updated project metadata to PEP 517 (#3022 by @connortann).
- Introduced more thorough testing on CI against newer dependencies (fork#61 and #3017 by @connortann)
- Reduced unit test time by ~5 mins (#3046 by @connortann).
- Introduced fixtures for reproducible fuzz testing (#3048 by @connortann).
For details of previous changes, see the release page on GitHub here.