Package: shapper 0.1.4

Image

Szymon Maksymiuk

shapper: Wrapper of Python Library 'shap'

Provides SHAP explanations of machine learning models. In applied machine learning, there is a strong belief that we need to strike a balance between interpretability and accuracy. However, in field of the Interpretable Machine Learning, there are more and more new ideas for explaining black-box models. One of the best known method for local explanations is SHapley Additive exPlanations (SHAP) introduced by Lundberg, S., et al., (2016) <arxiv:1705.07874> The SHAP method is used to calculate influences of variables on the particular observation. This method is based on Shapley values, a technique used in game theory. The R package 'shapper' is a port of the Python library 'shap'.

Authors:Szymon Maksymiuk [aut, cre], Alicja Gosiewska [aut], Przemyslaw Biecek [aut], Mateusz Staniak [ctb], Michal Burdukiewicz [ctb]

shapper_0.1.4.tar.gz
shapper_0.1.4.zip(r-4.6)shapper_0.1.4.zip(r-4.5)shapper_0.1.4.zip(r-4.4)
shapper_0.1.4.tgz(r-4.6-any)shapper_0.1.4.tgz(r-4.5-any)
shapper_0.1.4.tar.gz(r-4.6-any)shapper_0.1.4.tar.gz(r-4.5-any)
shapper_0.1.4.tgz(r-4.5-emscripten)
shapper.pdf |shapper.html
shapper/json (API)
NEWS

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

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

On CRAN:

Conda:

7.39 score 58 stars 70 scripts 824 downloads 4 exports 42 dependencies

Last updated from:3b54449553. Checks:9 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64OK152
source / vignettesOK145
linux-release-x86_64OK141
macos-devel-arm64OK196
macos-release-arm64OK105
windows-develOK116
windows-releaseOK122
windows-oldrelOK153
wasm-releaseOK104

Exports:individual_variable_effectinstall_shapshaptheme_drwhy_colors

Dependencies:clicodetoolscpp11DALEXdigestdoFuturefarverforeachfuturefuture.applyggplot2globalsgluegridExtragtablehereiBreakDowningredientsisobanditeratorsjsonlitekernelshaplabelinglatticelifecyclelistenvMatrixparallellypngR6rappdirsRColorBrewerRcppRcppTOMLreticulaterlangrprojrootS7scalesvctrsviridisLitewithr

How to use shapper for classification

Rendered fromshapper_classification.Rmdusingknitr::knitron Feb 16 2026.

Last update: 2023-05-25
Started: 2018-12-14

How to use shapper for regression

Rendered fromshapper_regression.Rmdusingknitr::knitron Feb 16 2026.

Last update: 2021-06-30
Started: 2018-12-14

Readme and manuals

Help Manual

Help pageTopics
Individual Variable Effectindividual_variable_effect individual_variable_effect.default individual_variable_effect.explainer shap
Install shap Python libraryinstall_shap
Plots Attributions for Variables of Individual Predictionplot.individual_variable_effect
Print Individual Variable Effectsprint.individual_variable_effect
DrWhy Theme for ggplot objectstheme_drwhy_colors

  • Image