bgreenwell / fastshap

Fast approximate Shapley values in R
https://bgreenwell.github.io/fastshap/
113 stars 18 forks source link

Add option to use LinearSHAP for (generalized) linear models #2

Closed bgreenwell closed 4 years ago

bgreenwell commented 4 years ago

Exact contributions can be obtained easily using predict(lm_fit, type = "terms"); note however, that the model should be additive in this case (i.e., no interaction effects).