SHAP Visualizations
Concatenates "shapviz" Objects
Collapse SHAP values
Dimensions of "shapviz" Object
Dimnames (Replacement Method) of "shapviz" Object
Dimnames of "shapviz" Object
Extractor Functions
Number Formatter
Check for mshapviz
Check for shapviz
Combines compatible "shapviz" Objects
Rowbinds two "shapviz" Objects
Interaction Strength
Prints "mshapviz" Object
Prints "shapviz" Object
Rowbinds Multiple "shapviz" or "mshapviz" Objects
shapviz: SHAP Visualizations
Initialize "shapviz" Object
Splits "shapviz" Object
Subsets "shapviz" Object
Summarizes "shapviz" Object
SHAP Dependence Plot
2D SHAP Dependence Plot
SHAP Force Plot
SHAP Importance Plots
SHAP Interaction Plot
SHAP Waterfall Plot
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', and 'kernelshap' 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.
Useful links