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) . 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>.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("qshap")

2.0.0 by Zhongli Jiang, 2 months ago


https://github.com/catstats/Q-SHAP_R


Report a bug at https://github.com/catstats/Q-SHAP_R/issues


Browse source code at https://github.com/cran/qshap


Authors: Steven He [aut] , Zhongli Jiang [aut, cre] , Dabao Zhang [aut]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rcpp, xgboost, parallel, lightgbm, viridisLite, ggplot2, scales, jsonlite, methods, progress

Suggests shiny

Linking to Rcpp, RcppEigen


See at CRAN