Skip to content

qshap

1.0.1

Fast Calculation of Feature Contributions in Boosting Trees

0packages depend
1.6Kdownloads / year
test coverage
12/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
1NOTE12OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 3.9 min · r-release-macos-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
9
Dependencies · direct
Check history
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • 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

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
3%

Downloads

1.6K
CRAN downloads in the past year
Rank #15,061 · ~4/day · ~133/mo
Daily download trend is not available in this view yet.
16330 days
69790 days
1.6K1 year
Compare downloads with other packages →
Also on176 r2u

Repository

Repository
2Stars
0Forks
0Open issues
0Open PRs
0Releases
187Commits
3Contributors
187 commits · Last activity 2026-07-18 · 0% stars, 30d

Stars over time

2026-04-10 · 12026-07-07 · 2

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/catstats/q-shap_r on 2026-07-31.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

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

Nothing depends on this yet.

Code & Tests

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Package 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
Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy