bgreenwell / fastshap

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

Update explain.R #72

Open p-schaefer opened 11 months ago

p-schaefer commented 11 months ago

updated to work with lightgbm package version 3.3.5

bgreenwell commented 8 months ago

Thanks @p-schaefer, is there any issue in this PR with versions 3.3.2-3.35?

p-schaefer commented 8 months ago

I'm sorry, I'm not sure. I didn't test it. All I know is that phis <- stats::predict(object, X, type = "contrib", ...) is correct for lightgbm version 3.3.5