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'.

Getting started

Package details

AuthorKonrad Komisarczyk [aut], Pawel Kozminski [aut], Szymon Maksymiuk [aut] (<https://orcid.org/0000-0002-3120-1601>), Lorenz A. Kapsner [ctb] (<https://orcid.org/0000-0003-1866-860X>), Mikolaj Spytek [ctb] (<https://orcid.org/0000-0001-7111-2286>), Mateusz Krzyzinski [ctb, cre] (<https://orcid.org/0000-0001-6143-488X>), Przemyslaw Biecek [aut, cph] (<https://orcid.org/0000-0001-8423-1823>)
MaintainerMateusz Krzyzinski <krzyzinskimateusz23@gmail.com>
LicenseGPL-3
Version0.3.1
URL https://modeloriented.github.io/treeshap/ https://github.com/ModelOriented/treeshap
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("treeshap")

Try the treeshap package in your browser

Any scripts or data that you put into this service are public.

treeshap documentation built on May 29, 2024, 1:27 a.m.