Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHAP on Forest Causal Regressor #92

Open
gcasamat opened this issue Nov 4, 2022 · 0 comments
Open

SHAP on Forest Causal Regressor #92

gcasamat opened this issue Nov 4, 2022 · 0 comments

Comments

@gcasamat
Copy link

gcasamat commented Nov 4, 2022

Hi,
thanks for this very useful package.
I would like to compute SHAP values of a causal forest model.
I ran a code similar to the one given in https://skgrf.readthedocs.io/en/latest/tree/tree_interface.html#shap , except that my model is :

cf = GRFForestCausalRegressor(enable_tree_details = True)
cf.fit(X, Y, W, Y_hat_nomissing, W_hat_nomissing)

This works fine. However, SHAP considers as predictions of my model the predicted values of Y, whereas I would like to consider as predictions the conditional effects of my treatment variable W on the target Y, which are typically the values given by cf.predict().
I wonder if there exists a way of achieving my desired outcome?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant