kernelshap: Kernel SHAP

Multidimensional refinement of the Kernel SHAP algorithm described in Ian Covert and Su-In Lee (2021) <http://proceedings.mlr.press/v130/covert21a>. The package allows to calculate Kernel SHAP values in an exact way, by iterative sampling (as in the reference above), or by a hybrid of the two. As soon as sampling is involved, the algorithm iterates until convergence, and standard errors are provided. The package works with any model that provides numeric predictions of dimension one or higher. Examples include linear regression, logistic regression (on logit or probability scale), other generalized linear models, generalized additive models, and neural networks. The package plays well together with meta-learning packages like 'tidymodels', 'caret' or 'mlr3'. Visualizations can be done using the R package 'shapviz'.

Version: 0.3.3
Depends: R (≥ 3.2.0)
Imports: foreach, stats, utils
Suggests: doFuture, testthat (≥ 3.0.0)
Published: 2023-01-11
Author: Michael Mayer [aut, cre], David Watson [ctb]
Maintainer: Michael Mayer <mayermichael79 at gmail.com>
BugReports: https://github.com/mayer79/kernelshap/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/mayer79/kernelshap
NeedsCompilation: no
Materials: README NEWS
In views: MachineLearning
CRAN checks: kernelshap results

Documentation:

Reference manual: kernelshap.pdf

Downloads:

Package source: kernelshap_0.3.3.tar.gz
Windows binaries: r-devel: kernelshap_0.3.3.zip, r-release: kernelshap_0.3.3.zip, r-oldrel: kernelshap_0.3.3.zip
macOS binaries: r-release (arm64): kernelshap_0.3.3.tgz, r-oldrel (arm64): kernelshap_0.3.3.tgz, r-release (x86_64): kernelshap_0.3.3.tgz, r-oldrel (x86_64): kernelshap_0.3.3.tgz
Old sources: kernelshap archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=kernelshap to link to this page.