Package: qshap 2.0.0

Zhongli Jiang
qshap: Fast Calculation of Feature Contributions in Boosting Trees
Computes feature-specific R-squared (R2) contributions for boosting tree models using a Shapley-value-based decomposition of the total R-squared in polynomial time. Supports models fitted with 'XGBoost', 'LightGBM', and 'CatBoost', with optimized backend-specific implementations and cached tree summaries suitable for large-scale problems. Multiple visualization tools are included for interpreting and communicating feature contributions. The methodology is described in Jiang, Zhang, and Zhang (2025) <doi:10.48550/arXiv.2407.03515>. Optional 'CatBoost' support uses the R package 'catboost', which is not distributed on CRAN; installation instructions and released binaries are provided by the CatBoost project at <https://catboost.ai/docs/en/concepts/r-installation>.
Authors:
qshap_2.0.0.tar.gz
qshap_2.0.0.zip(r-4.7-x86_64)qshap_2.0.0.zip(r-4.7-arm64)qshap_2.0.0.zip(r-4.6-x86_64)qshap_2.0.0.zip(r-4.6-arm64)qshap_2.0.0.zip(r-4.5-x86_64)
qshap_2.0.0.tgz(r-4.6-x86_64)qshap_2.0.0.tgz(r-4.6-arm64)qshap_2.0.0.tgz(r-4.5-x86_64)qshap_2.0.0.tgz(r-4.5-arm64)
qshap_2.0.0.tar.gz(r-4.7-arm64)qshap_2.0.0.tar.gz(r-4.7-x86_64)qshap_2.0.0.tar.gz(r-4.6-arm64)qshap_2.0.0.tar.gz(r-4.6-x86_64)
qshap_2.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
qshap/json (API)
| # Install 'qshap' in R: |
| install.packages('qshap', repos = c('https://catstats.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/catstats/q-shap_r/issues
Last updated from:367f304008. Checks:15 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 167 | ||
| linux-devel-x86_64 | OK | 299 | ||
| source / vignettes | OK | 207 | ||
| linux-release-arm64 | OK | 276 | ||
| linux-release-x86_64 | OK | 211 | ||
| macos-release-arm64 | OK | 237 | ||
| macos-release-x86_64 | OK | 287 | ||
| macos-oldrel-arm64 | OK | 178 | ||
| macos-oldrel-x86_64 | OK | 485 | ||
| windows-devel-arm64 | OK | 392 | ||
| windows-devel-x86_64 | OK | 219 | ||
| windows-release-arm64 | OK | 398 | ||
| windows-release-x86_64 | OK | 171 | ||
| windows-oldrel-x86_64 | OK | 157 | ||
| wasm-release | OK | 132 |
Exports:gazerget_treelossplot_loss_heatmapqshapqshap_resultrsq
Dependencies:clicpp11crayondata.tablefarverggplot2gluegtablehmsisobandjsonlitelabelinglatticelifecyclelightgbmMatrixpkgconfigprettyunitsprogressR6RColorBrewerRcppRcppEigenrlangS7scalesvctrsviridisLitewithrxgboost
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Coercion method to data.frame for qshap_result | as.data.frame.qshap_result |
| Create a QSHAP Tree Explainer | gazer |
| Return a Tree Stored by Gazer | get_tree |
| Alias for qshap_loss | loss |
| Plot observation-level contributions | plot_loss_heatmap |
| Plot method for qshap_rsq objects | plot.qshap_rsq |
| Print method for qshap_result | print.qshap_result |
| Print method for qshap_tree_explainer | print.qshap_tree_explainer |
| Print method for simple_tree | print.simple_tree |
| Print method for tree_summary | print.tree_summary |
| Alias for rsq | qshap |
| User-friendly constructor for qshap_result | qshap_result |
| Calculate Feature-Specific R-Squared Values | rsq |
| Summary method for qshap_result | summary.qshap_result |
| Summary method for qshap_rsq objects | summary.qshap_rsq |
| Summary method for qshap_tree_explainer | summary.qshap_tree_explainer |