Package: qshap 1.0.1

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_1.0.1.tar.gz
qshap_1.0.1.zip(r-4.7)qshap_1.0.1.zip(r-4.6)qshap_1.0.1.zip(r-4.5)
qshap_1.0.1.tgz(r-4.6-x86_64)qshap_1.0.1.tgz(r-4.6-arm64)qshap_1.0.1.tgz(r-4.5-x86_64)qshap_1.0.1.tgz(r-4.5-arm64)
qshap_1.0.1.tar.gz(r-4.7-arm64)qshap_1.0.1.tar.gz(r-4.7-x86_64)qshap_1.0.1.tar.gz(r-4.6-arm64)qshap_1.0.1.tar.gz(r-4.6-x86_64)
qshap_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
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:0d56323cdb. Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 176 | ||
| linux-devel-x86_64 | OK | 190 | ||
| source / vignettes | OK | 199 | ||
| linux-release-arm64 | OK | 156 | ||
| linux-release-x86_64 | OK | 166 | ||
| macos-release-arm64 | OK | 313 | ||
| macos-release-x86_64 | OK | 283 | ||
| macos-oldrel-arm64 | OK | 115 | ||
| macos-oldrel-x86_64 | OK | 318 | ||
| windows-devel | OK | 148 | ||
| windows-release | OK | 132 | ||
| windows-oldrel | OK | 130 | ||
| wasm-release | OK | 129 |
Exports:gazerlossqshapqshap_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 |
| Alias for qshap_loss | loss |
| 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 |