Package: treeshap 0.4.0

Michael Mayer

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

Authors:Michael Mayer [aut, cre], Konrad Komisarczyk [aut], Pawel Kozminski [aut], Szymon Maksymiuk [aut], Lorenz A. Kapsner [ctb], Mikolaj Spytek [ctb], Mateusz Krzyzinski [ctb], Przemyslaw Biecek [aut, cph]

treeshap_0.4.0.tar.gz
treeshap_0.4.0.zip(r-4.7)treeshap_0.4.0.zip(r-4.6)treeshap_0.4.0.zip(r-4.5)
treeshap_0.4.0.tgz(r-4.6-x86_64)treeshap_0.4.0.tgz(r-4.6-arm64)treeshap_0.4.0.tgz(r-4.5-x86_64)treeshap_0.4.0.tgz(r-4.5-arm64)
treeshap_0.4.0.tar.gz(r-4.7-arm64)treeshap_0.4.0.tar.gz(r-4.7-x86_64)treeshap_0.4.0.tar.gz(r-4.6-arm64)treeshap_0.4.0.tar.gz(r-4.6-x86_64)
treeshap_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
treeshap/json (API)
NEWS

# Install 'treeshap' in R:
install.packages('treeshap', repos = c('https://modeloriented.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/modeloriented/treeshap/issues

Pkgdown/docs site:https://modeloriented.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • fifa20 - Attributes of all players in FIFA 20

On CRAN:

Conda:

explainabilityexplainable-aiexplainable-artificial-intelligenceexplanatory-model-analysisimlinterpretabilityinterpretable-machine-learningmachine-learningresponsible-mlshapshapley-valuexaicpp

7.30 score 98 stars 195 scripts 1.2k downloads 20 exports 19 dependencies

Last updated from:09be1a095b. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK212
linux-devel-x86_64OK224
source / vignettesOK176
linux-release-arm64OK228
linux-release-x86_64OK240
macos-release-arm64OK128
macos-release-x86_64OK398
macos-oldrel-arm64OK136
macos-oldrel-x86_64OK595
windows-develOK235
windows-releaseOK168
windows-oldrelOK182
wasm-releaseOK131

Exports:colors_breakdown_drwhycolors_discrete_drwhygbm.unifygpboost.unifyis.model_unifiedis.treeshaplightgbm.unifyplot_contributionplot_feature_dependenceplot_feature_importanceplot_interactionrandomForest.unifyranger_surv.unifyranger.unifyset_reference_datasettheme_drwhytheme_drwhy_verticaltreeshapunifyxgboost.unify

Dependencies:clicpp11data.tablefarverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerRcpprlangS7scalesvctrsviridisLitewithr