Package: shapviz 0.9.6
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', 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.
Authors:
shapviz_0.9.6.tar.gz
shapviz_0.9.6.zip(r-4.5)shapviz_0.9.6.zip(r-4.4)shapviz_0.9.6.zip(r-4.3)
shapviz_0.9.6.tgz(r-4.4-any)shapviz_0.9.6.tgz(r-4.3-any)
shapviz_0.9.6.tar.gz(r-4.5-noble)shapviz_0.9.6.tar.gz(r-4.4-noble)
shapviz_0.9.6.tgz(r-4.4-emscripten)shapviz_0.9.6.tgz(r-4.3-emscripten)
shapviz.pdf |shapviz.html✨
shapviz/json (API)
NEWS
# Install 'shapviz' in R: |
install.packages('shapviz', repos = c('https://modeloriented.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/modeloriented/shapviz/issues
- miami - Miami-Dade County House Prices
explainable-aimachine-learningshapshapley-valuevisualizationxai
Last updated 7 days agofrom:9e0bbf7832. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 16 2024 |
R-4.5-win | OK | Nov 16 2024 |
R-4.5-linux | OK | Nov 16 2024 |
R-4.4-win | OK | Nov 16 2024 |
R-4.4-mac | OK | Nov 16 2024 |
R-4.3-win | OK | Nov 16 2024 |
R-4.3-mac | OK | Nov 16 2024 |
Exports:collapse_shapformat_maxget_baselineget_feature_valuesget_shap_interactionsget_shap_valuesis.mshapvizis.shapvizmshapvizpotential_interactionsshapvizsv_dependencesv_dependence2Dsv_forcesv_importancesv_interactionsv_waterfall
Dependencies:clicolorspacecommonmarkcurldata.tablefansifarverggfittextgggenesggplot2ggrepelgluegridtextgtableisobandjpegjsonlitelabelinglatticelifecyclemagrittrmarkdownMASSMatrixmgcvmunsellnlmepatchworkpillarpkgconfigpngR6RColorBrewerRcpprlangscalesshadesstringistringrtibbleutf8vctrsviridisLitewithrxfunxgboostxml2
Geographic Components
Rendered fromgeographic.Rmd
usingknitr::rmarkdown
on Nov 16 2024.Last update: 2024-09-11
Started: 2023-06-07
Multiple 'shapviz' objects
Rendered frommultiple_output.Rmd
usingknitr::rmarkdown
on Nov 16 2024.Last update: 2024-08-19
Started: 2023-04-07
Tidymodels
Rendered fromtidymodels.Rmd
usingknitr::rmarkdown
on Nov 16 2024.Last update: 2024-09-14
Started: 2024-09-05
Using 'shapviz'
Rendered frombasic_use.Rmd
usingknitr::rmarkdown
on Nov 16 2024.Last update: 2024-11-16
Started: 2023-04-07
Readme and manuals
Help Manual
Help page | Topics |
---|---|
shapviz: SHAP Visualizations | shapviz-package |
Subsets "shapviz" Object | [.shapviz |
Rowbinds two "shapviz" Objects | +.mshapviz +.shapviz |
Concatenates "shapviz" Objects | c.shapviz |
Collapse SHAP values | collapse_shap |
Dimensions of "shapviz" Object | dim.shapviz |
Dimnames of "shapviz" Object | dimnames.shapviz |
Dimnames (Replacement Method) of "shapviz" Object | dimnames<-.shapviz |
Extractor Functions | extractors get_baseline get_baseline.default get_baseline.mshapviz get_baseline.shapviz get_feature_values get_feature_values.default get_feature_values.mshapviz get_feature_values.shapviz get_shap_interactions get_shap_interactions.default get_shap_interactions.mshapviz get_shap_interactions.shapviz get_shap_values get_shap_values.default get_shap_values.mshapviz get_shap_values.shapviz |
Number Formatter | format_max |
Check for mshapviz | is.mshapviz |
Check for shapviz | is.shapviz |
Miami-Dade County House Prices | miami |
Combines compatible "shapviz" Objects | mshapviz |
Interaction Strength | potential_interactions |
Prints "mshapviz" Object | print.mshapviz |
Prints "shapviz" Object | print.shapviz |
Rowbinds Multiple "shapviz" or "mshapviz" Objects | rbind.mshapviz rbind.shapviz |
Initialize "shapviz" Object | shapviz shapviz.default shapviz.explain shapviz.H2OBinomialModel shapviz.H2OModel shapviz.H2ORegressionModel shapviz.kernelshap shapviz.lgb.Booster shapviz.matrix shapviz.predict_parts shapviz.shapr shapviz.treeshap shapviz.xgb.Booster |
Splits "shapviz" Object | split.shapviz |
Summarizes "shapviz" Object | summary.shapviz |
SHAP Dependence Plot | sv_dependence sv_dependence.default sv_dependence.mshapviz sv_dependence.shapviz |
2D SHAP Dependence Plot | sv_dependence2D sv_dependence2D.default sv_dependence2D.mshapviz sv_dependence2D.shapviz |
SHAP Force Plot | sv_force sv_force.default sv_force.mshapviz sv_force.shapviz |
SHAP Importance Plots | sv_importance sv_importance.default sv_importance.mshapviz sv_importance.shapviz |
SHAP Interaction Plot | sv_interaction sv_interaction.default sv_interaction.mshapviz sv_interaction.shapviz |
SHAP Waterfall Plot | sv_waterfall sv_waterfall.default sv_waterfall.mshapviz sv_waterfall.shapviz |