Skip to content

Commit

Permalink
set check_additivity=False for CausalForestDML
Browse files Browse the repository at this point in the history
  • Loading branch information
heimengqi committed Apr 30, 2021
1 parent 9630421 commit ea9e01d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions econml/_shap.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ def _shap_explain_multitask_model_cate(cme_model, multitask_model_cate, X, d_t,
output_names=output_names_,
input_names=input_names_,
background_samples=background_samples)

shap_out = explainer(F)
shap_out = explainer(F, check_additivity=False)
if dt > 1:
for i in range(dt):
base_values = shap_out.base_values[..., i]
Expand Down

0 comments on commit ea9e01d

Please sign in to comment.