treeshap: Compute SHAP Values for Your Tree-Based Models Using the 'TreeSHAP' Algorithm

An efficient implementation of the 'TreeSHAP' algorithm introduced by Lundberg et al., (2020) <doi:10.1038/s42256-019-0138-9>. It is capable of calculating SHAP (SHapley Additive exPlanations) values for tree-based models in polynomial time. Currently supported models include 'gbm', 'randomForest', 'ranger', 'xgboost', 'lightgbm'.

Version: 0.3.1
Depends: R (≥ 2.10)
Imports: data.table, ggplot2, Rcpp
LinkingTo: Rcpp
Suggests: gbm, jsonlite, lightgbm, randomForest, ranger, scales, survival, testthat, xgboost
Published: 2024-01-22
DOI: 10.32614/CRAN.package.treeshap
Author: Konrad Komisarczyk [aut], Pawel Kozminski [aut], Szymon Maksymiuk ORCID iD [aut], Lorenz A. Kapsner ORCID iD [ctb], Mikolaj Spytek ORCID iD [ctb], Mateusz Krzyzinski ORCID iD [ctb, cre], Przemyslaw Biecek ORCID iD [aut, cph]
Maintainer: Mateusz Krzyzinski <krzyzinskimateusz23 at>
License: GPL-3
NeedsCompilation: yes
CRAN checks: treeshap results


Reference manual: treeshap.pdf


Package source: treeshap_0.3.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): treeshap_0.3.1.tgz, r-oldrel (arm64): treeshap_0.3.1.tgz, r-release (x86_64): treeshap_0.3.1.tgz, r-oldrel (x86_64): treeshap_0.3.1.tgz
Old sources: treeshap archive

Reverse dependencies:

Reverse suggests: survex


Please use the canonical form to link to this page.