File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1171,11 +1171,12 @@ def fit(self, # type: ignore[override]
1171
1171
# leave the logic above untouched. This approach has at least two benefits:
1172
1172
# i) minimal refactoring
1173
1173
# ii) return the correct result if a newer version of shap which fixes the issue is used before we
1174
- # update our wrapper in alibi (i.e. just ignore the warning)
1174
+ # update our dependencies in alibi (i.e. just ignore the warning)
1175
1175
if n_samples > TREE_SHAP_BACKGROUND_SUPPORTED_SIZE :
1176
- logger .warning ('The upstream implementation of interventional TreeShap supports only up to '
1176
+ logger .warning (f 'The upstream implementation of interventional TreeShap supports only up to '
1177
1177
f'{ TREE_SHAP_BACKGROUND_SUPPORTED_SIZE } samples in the background dataset. '
1178
- 'A larger background dataset size will result in erroneous Shap values.' )
1178
+ f'A larger background dataset will be sampled with replacement to '
1179
+ f'{ TREE_SHAP_BACKGROUND_SUPPORTED_SIZE } instances.' )
1179
1180
1180
1181
perturbation = 'interventional' if background_data is not None else 'tree_path_dependent'
1181
1182
self .background_data = background_data
You can’t perform that action at this time.
0 commit comments