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

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

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

On CRAN:

Conda:

cpp

4.45 score 2 stars 2 scripts 471 downloads 5 exports 30 dependencies

Last updated from:0d56323cdb. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK176
linux-devel-x86_64OK190
source / vignettesOK199
linux-release-arm64OK156
linux-release-x86_64OK166
macos-release-arm64OK313
macos-release-x86_64OK283
macos-oldrel-arm64OK115
macos-oldrel-x86_64OK318
windows-develOK148
windows-releaseOK132
windows-oldrelOK130
wasm-releaseOK129

Exports:gazerlossqshapqshap_resultrsq

Dependencies:clicpp11crayondata.tablefarverggplot2gluegtablehmsisobandjsonlitelabelinglatticelifecyclelightgbmMatrixpkgconfigprettyunitsprogressR6RColorBrewerRcppRcppEigenrlangS7scalesvctrsviridisLitewithrxgboost