qshap
1.0.1Fast Calculation of Feature Contributions in Boosting Trees
Overview
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>.
Install
Health
- OK2026-04-2214 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1813 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-175 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
78 5 exported
Complexity
4.9 avg / 40 max
Call network
78 nodes / 56 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- 1.0.1Latest
- RR 4.6.0 released · 2026-04-24
- 1.02026-03-16
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-03-16
- Total releases
- 2 / 1 yrs
- License
- GPL (>= 2) OSI
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet