Package: shapper 0.1.4

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.5)shapper_0.1.4.zip(r-4.4)shapper_0.1.4.zip(r-4.3)
shapper_0.1.4.tgz(r-4.4-any)shapper_0.1.4.tgz(r-4.3-any)
shapper_0.1.4.tar.gz(r-4.5-noble)shapper_0.1.4.tar.gz(r-4.4-noble)
shapper_0.1.4.tgz(r-4.4-emscripten)shapper_0.1.4.tgz(r-4.3-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'))

Peer review:

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

On CRAN:

4 exports 58 stars 3.42 score 44 dependencies 49 scripts 499 downloads

Last updated 1 years agofrom:3b54449553. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 09 2024
R-4.5-winOKSep 09 2024
R-4.5-linuxOKSep 09 2024
R-4.4-winOKSep 09 2024
R-4.4-macOKSep 09 2024
R-4.3-winOKSep 09 2024
R-4.3-macOKSep 09 2024

Exports:individual_variable_effectinstall_shapshaptheme_drwhy_colors

Dependencies:clicodetoolscolorspaceDALEXfansifarverforeachggplot2gluegridExtragtablehereiBreakDowningredientsisobanditeratorsjsonlitekernelshaplabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigpngR6rappdirsRColorBrewerRcppRcppTOMLreticulaterlangrprojrootscalestibbleutf8vctrsviridisLitewithr

How to use shapper for classification

Rendered fromshapper_classification.Rmdusingknitr::knitron Sep 09 2024.

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

How to use shapper for regression

Rendered fromshapper_regression.Rmdusingknitr::knitron Sep 09 2024.

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