@@ -7,40 +7,65 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
7
7
## Unreleased
8
8
<!-- Changes from new PRs should be put in this section-->
9
9
10
+ ## 0.42.0 - 2023-07-05
11
+
12
+ This release incorporates many changes that were originally contributed by the SHAP
13
+ community via @dsgibbons 's [ Community Fork] [ fork ] , which has now been merged
14
+ into the main shap repository. PRs from this origin are labelled here as ` fork#123 ` .
15
+
16
+ [ fork ] : https://github.com/slundberg/shap/discussions/2942
17
+
10
18
### Added
11
19
20
+ - Added support for python 3.11
21
+ ([ fork #72 ] ( https://github.com/dsgibbons/shap/pull/72 ) by @connortann ).
12
22
- Added ` n_points ` parameter to all functions in ` shap.datasets `
13
- ([ dsgibbons #39 ] ( https://github.com/dsgibbons/shap/pull/39 ) by @thatlittleboy ).
23
+ ([ fork #39 ] ( https://github.com/dsgibbons/shap/pull/39 ) by @thatlittleboy ).
14
24
- Added ` __call__ ` to ` KernelExplainer `
15
25
([ #2966 ] ( https://github.com/slundberg/shap/pull/2966 ) by @dwolfeu ).
16
- - Added [ contributing guidelines] ( https://github.com/slundberg/shap/blob/master/CONTRIBUTING.md )
17
- ([ #2996 ] ( https://github.com/slundberg/shap/pull/2996 ) by @connortann )
26
+ - Added [ contributing guidelines] [ contrib-guide ]
27
+ ([ #2996 ] ( https://github.com/slundberg/shap/pull/2996 ) by @connortann ).
28
+
29
+ [ contrib-guide ] : [https://github.com/slundberg/shap/blob/master/CONTRIBUTING.md]
18
30
19
31
### Fixed
20
32
21
33
- Fixed ` plot.waterfall ` to support yticklabels with boolean features
22
- ([ dsgibbons #58 ] ( https://github.com/dsgibbons/shap/pull/58 ) by @dwolfeu ).
23
- - Prevent ` TreeExplainer.__call__ ` from throwing ValueError when passed a pandas DataFrame containing Categorical columns
24
- ([ dsgibbons #88 ] ( https://github.com/dsgibbons/shap/pull/88 ) by @thatlittleboy ).
34
+ ([ fork #58 ] ( https://github.com/dsgibbons/shap/pull/58 ) by @dwolfeu ).
35
+ - Prevent ` TreeExplainer.__call__ ` from throwing ValueError when passed a pandas
36
+ DataFrame containing Categorical columns
37
+ ([ fork #88 ] ( https://github.com/dsgibbons/shap/pull/88 ) by @thatlittleboy ).
25
38
- Fixed sampling in ` shap.datasets ` to sample without replacement
26
- ([ dsgibbons #36 ] ( https://github.com/dsgibbons/shap/pull/36 ) by @thatlittleboy ).
39
+ ([ fork #36 ] ( https://github.com/dsgibbons/shap/pull/36 ) by @thatlittleboy ).
27
40
- Fixed an ` UnboundLocalError ` problem arising from passing a dictionary input to ` shap.plots.bar `
41
+ ([ #3001 ] ( https://github.com/slundberg/shap/pull/3001 ) by @thatlittleboy ).
42
+ ([ fork #36 ] ( https://github.com/dsgibbons/shap/pull/36 ) by @thatlittleboy ).
43
+ - Fixed an ` UnboundLocalError ` problem arising from passing a dictionary input
44
+ to ` shap.plots.bar `
28
45
([ #3001 ] ( https://github.com/slundberg/shap/pull/3000 ) by @thatlittleboy ).
29
46
- Fixed tensorflow import issue with Pyspark when using ` Gradient `
30
47
([ #2983 ] ( https://github.com/slundberg/shap/pull/2983 ) by @skamdar ).
31
- - Fixed the aspect ratio of the colorbar in ` shap.plots.heatmap ` , and use the ` ax ` matplotlib API internally
32
- for plotting
48
+ - Fixed the aspect ratio of the colorbar in ` shap.plots.heatmap ` , and use the
49
+ ` ax ` matplotlib API internally for plotting
33
50
([ #3040 ] ( https://github.com/slundberg/shap/pull/3040 ) by @thatlittleboy ).
51
+ - Fixed deprecation warnings for ` numba>=0.44 `
52
+ ([ fork #9 ] ( https://github.com/dsgibbons/shap/pull/9 ) and
53
+ [ fork #68 ] ( https://github.com/dsgibbons/shap/pull/68 ) by @connortann ).
34
54
- Fixed deprecation warnings for ` numpy>=1.24 ` from numpy types
35
- ([ dsgibbons #7 ] ( https://github.com/dsgibbons/shap/pull/7 ) by @dsgibbons ).
55
+ ([ fork #7 ] ( https://github.com/dsgibbons/shap/pull/7 ) by @dsgibbons ).
36
56
- Fixed deprecation warnings for ` Ipython>=8 ` from ` Ipython.core.display `
37
- ([ dsgibbons #13 ] ( https://github.com/dsgibbons/shap/pull/13 ) by @thatlittleboy ).
57
+ ([ fork #13 ] ( https://github.com/dsgibbons/shap/pull/13 ) by @thatlittleboy ).
38
58
- Fixed deprecation warnings for ` tensorflow>=2.11 ` from ` tf.optimisers `
39
- ([ dsgibbons #16 ] ( https://github.com/dsgibbons/shap/pull/16 ) by @simonangerbauer ).
59
+ ([ fork #16 ] ( https://github.com/dsgibbons/shap/pull/16 ) by @simonangerbauer ).
40
60
- Fixed deprecation warnings for ` sklearn>=1.2 ` from ` sklearn.linear_model `
41
- ([ dsgibbons #22 ] ( https://github.com/dsgibbons/shap/pull/22 ) by @dsgibbons ).
61
+ ([ fork #22 ] ( https://github.com/dsgibbons/shap/pull/22 ) by @dsgibbons ).
42
62
- Fixed deprecation warnings for ` xgboost>=1.4 ` from ` ntree_limit ` in tree explainer
43
63
([ #2987 ] ( https://github.com/slundberg/shap/pull/2987 ) by @adnene-guessoum ).
64
+ - Fixed build on Windows and MacOS
65
+ ([ #3015 ] ( https://github.com/slundberg/shap/pull/3015 ) by @PrimozGodec ;
66
+ [ #3028 ] ( https://github.com/slundberg/shap/pull/3028 ) ,
67
+ [ #3029 ] ( https://github.com/slundberg/shap/pull/3029 ) and
68
+ [ #3031 ] ( https://github.com/slundberg/shap/pull/3031 ) by @connortann ).
44
69
45
70
### Changed
46
71
@@ -51,37 +76,38 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
51
76
### Removed
52
77
53
78
- Deprecated the Boston house price dataset
54
- ([ dsgibbons #38 ] ( https://github.com/dsgibbons/shap/pull/38 ) by @thatlittleboy ).
79
+ ([ fork #38 ] ( https://github.com/dsgibbons/shap/pull/38 ) by @thatlittleboy ).
55
80
- Removed the unused ` mimic.py ` file and ` MimicExplainer ` code
56
- ([ dsgibbons #53 ] ( https://github.com/dsgibbons/shap/pull/53 ) by @thatlittleboy ).
81
+ ([ fork #53 ] ( https://github.com/dsgibbons/shap/pull/53 ) by @thatlittleboy ).
57
82
58
83
### Maintenance
59
84
60
85
- Fixed failing unit tests
61
- ([ dsgibbons #29 ] ( https://github.com/dsgibbons/shap/pull/29 ) by @dsgibbons ,
62
- [ dsgibbons #20 ] ( https://github.com/dsgibbons/shap/pull/20 ) by @simonangerbauer ,
63
- [ #3044 ] ( https://github.com/slundberg/shap/pull/3044 ) by @ connortann ,
64
- [ dsgibbons #24 ] ( https://github.com/dsgibbons/shap/pull/24 ) by @connortann ).
86
+ ([ fork #29 ] ( https://github.com/dsgibbons/shap/pull/29 ) by @dsgibbons ,
87
+ [ fork #20 ] ( https://github.com/dsgibbons/shap/pull/20 ) by @simonangerbauer ,
88
+ [ #3044 ] ( https://github.com/slundberg/shap/pull/3044 ) and
89
+ [ fork #24 ] ( https://github.com/dsgibbons/shap/pull/24 ) by @connortann ).
65
90
- Include CUDA GPU C extension files in the source distribution
66
91
([ #3009 ] ( https://github.com/slundberg/shap/pull/3009 ) by @jklaise ).
67
92
- Fixed installation of package via setuptools
68
- ([ dsgibbons #51 ] ( https://github.com/dsgibbons/shap/pull/51 ) by @thatlittleboy ).
93
+ ([ fork #51 ] ( https://github.com/dsgibbons/shap/pull/51 ) by @thatlittleboy ).
69
94
- Introduced a minimal set of ` ruff ` linting
70
- ([ dsgibbons #25 ] ( https://github.com/dsgibbons/shap/pull/25 ) ,
71
- [ dsgibbons #26 ] ( https://github.com/dsgibbons/shap/pull/26 ) ,
72
- [ dsgibbons #27 ] ( https://github.com/dsgibbons/shap/pull/27 ) ,
95
+ ([ fork #25 ] ( https://github.com/dsgibbons/shap/pull/25 ) ,
96
+ [ fork #26 ] ( https://github.com/dsgibbons/shap/pull/26 ) ,
97
+ [ fork #27 ] ( https://github.com/dsgibbons/shap/pull/27 ) ,
73
98
[ #2973 ] ( https://github.com/slundberg/shap/pull/2973 ) ,
74
99
[ #2972 ] ( https://github.com/slundberg/shap/pull/2972 ) and
75
- [ #2976 ] ( https://github.com/slundberg/shap/pull/2976 ) by @connortann ,
100
+ [ #2976 ] ( https://github.com/slundberg/shap/pull/2976 ) by @connortann ;
76
101
[ #2968 ] ( https://github.com/slundberg/shap/pull/2968 ) ,
77
102
[ #2986 ] ( https://github.com/slundberg/shap/pull/2986 ) by @thatlittleboy ).
78
- - Fixed wheel packaging and updated project metadata to PEP 517
79
- ([ #3022 ] ( https://github.com/slundberg/shap/pull/3022 ) by @connortann )
103
+ - Updated project metadata to PEP 517
104
+ ([ #3022 ] ( https://github.com/slundberg/shap/pull/3022 ) by @connortann ).
80
105
- Introduced more thorough testing on CI against newer dependencies
81
- ([ dsgibbons #61 ] ( https://github.com/dsgibbons/shap/pull/61 ) and
106
+ ([ fork #61 ] ( https://github.com/dsgibbons/shap/pull/61 ) and
82
107
[ #3017 ] ( https://github.com/slundberg/shap/pull/3017 )
83
108
by @connortann )
84
-
109
+ - Reduced unit test time by ~ 5 mins
110
+ ([ #3046 ] ( https://github.com/slundberg/shap/pull/3046 ) by @connortann ).
85
111
86
112
## [ 0.41.0] - 2022-06-16
87
113
0 commit comments