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:Steven He [aut], Zhongli Jiang [aut, cre], Dabao Zhang [aut]

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

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

4.52 score 2 stars 11 scripts 281 downloads 7 exports 30 dependencies

Last updated from:367f304008. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK167
linux-devel-x86_64OK299
source / vignettesOK207
linux-release-arm64OK276
linux-release-x86_64OK211
macos-release-arm64OK237
macos-release-x86_64OK287
macos-oldrel-arm64OK178
macos-oldrel-x86_64OK485
windows-devel-arm64OK392
windows-devel-x86_64OK219
windows-release-arm64OK398
windows-release-x86_64OK171
windows-oldrel-x86_64OK157
wasm-releaseOK132

Exports:gazerget_treelossplot_loss_heatmapqshapqshap_resultrsq

Dependencies:clicpp11crayondata.tablefarverggplot2gluegtablehmsisobandjsonlitelabelinglatticelifecyclelightgbmMatrixpkgconfigprettyunitsprogressR6RColorBrewerRcppRcppEigenrlangS7scalesvctrsviridisLitewithrxgboost