Skip to content

qshap

1.0.1

Fast Calculation of Feature Contributions in Boosting Trees

0packages depend
1.5Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Zhongli JiangFirst published 2026-03-162 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
No
README
9
Dependencies · direct
Check history
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-17
    5 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

1.5K
CRAN downloads in the past year
Rank #10,853 · ~4/day · ~121/mo
qshap
Daily download trend is not available in this view yet.
25530 days
98590 days
1.5K1 year
Compare downloads with other packages →
Also on155 r2u2 autocran
Source & community
GitHub ↗

Repository stars, issues, and contributor activity are not tracked yet.

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (0)
none
LinkingTo (2)
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
indirect (not tracked)

Nothing depends on this yet.

Code & Tests

Code Composition
R 2,761 (59%)Rd 1,018 (22%)C++ 787 (17%)C 114 (2%)

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.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Release timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.0.1Latest
    2026-05-04 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0
    2026-03-16
  • R
    R 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