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

Make linear model without interactions more efficient #278

Open
martinju opened this issue Sep 17, 2021 · 0 comments
Open

Make linear model without interactions more efficient #278

martinju opened this issue Sep 17, 2021 · 0 comments

Comments

@martinju
Copy link
Member

martinju commented Sep 17, 2021

For linear models without interactions, we only need E[X_j|X_S] for every single feature X_j to compute the Shapley values, not E[f(X)|X_S]. We should utilize this to compute Shapley values more efficiently for this special case

When this is also combined with approach="gaussian", (and maybe also approach = "copula"?), we could also bypass the Monte Carlo sampling from the fitted models in this case.

Note: Linear models with lower order interactions also lead to simplifications, as it requires E[X_jX_k|X_S] for pairwise interactions and E[X_jX_k_X_l|X_S] for triplets and so on, but it is more tedious to implement that.

@martinju martinju added this to To do in Towards shapr 1.0.0 Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant