shapviz: SHAP Visualizations

Visualizations for SHAP (SHapley Additive exPlanations), such as waterfall plots, force plots, various types of importance plots, dependence plots, and interaction plots. These plots act on a 'shapviz' object created from a matrix of SHAP values and a corresponding feature dataset. Wrappers for the R packages 'xgboost', 'lightgbm', 'fastshap', 'shapr', 'h2o', 'treeshap', 'DALEX', 'kernelshap', and 'permshap' are added for convenience. By separating visualization and computation, it is possible to display factor variables in graphs, even if the SHAP values are calculated by a model that requires numerical features. The plots are inspired by those provided by the 'shap' package in Python, but there is no dependency on it.

Package details

AuthorMichael Mayer [aut, cre], Adrian Stando [ctb]
MaintainerMichael Mayer <mayermichael79@gmail.com>
LicenseGPL (>= 2)
Version0.9.2
URL https://github.com/ModelOriented/shapviz
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("shapviz")

Try the shapviz package in your browser

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

shapviz documentation built on Oct. 14, 2023, 5:07 p.m.