Skip to content

shapr

1.0.8

Prediction Explanation with Dependence-Aware Shapley Values

3packages depend
33.4Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Martin JullumFirst published 2020-09-0314 releasesCRAN page ↗GitHub ↗

Complex machine learning models are often hard to interpret. However, in many situations it is crucial to understand and explain why a model made a specific prediction. Shapley values is the only method for such prediction explanation framework with a solid theoretical foundation. Previously known methods for estimating the Shapley values do, however, assume feature independence. This package implements methods which accounts for any feature dependence, and thereby produces more accurate estimates of the true Shapley values. An accompanying 'Python' wrapper ('shaprpy') is available through PyPI.

Install

Health

CRAN checks
13OK
Code health
Yes
Tests · ratio 0.40
not tracked
Coverage
100%
Documentation · exports
Yes
Vignettes
Yes
README
8
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

33.4K
CRAN downloads in the past year
Rank #3,076 · ~91/day · ~2.8K/mo
1.7K30 days
4.9K90 days
33.4K1 year
Also on479 r2u27 autocran41 c2d4u
Source & community
GitHub ↗

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

Dependencies

Declared dependencies
34 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
3direct
indirect (not tracked)

Code

44,635Lines of code
41Exported functions

Code intelligence has not been computed for this package yet.

People & History

People (9)
Maintainer (1)
Maintainer, Author
Authors (4)
Contributors (3)
Contributor
Copyright holders (1)
Copyright holder, Funder
Release timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.8Latest
    2026-01-20 · current release
  • 1.0.7
    2025-12-22 · diff ↗
  • 1.0.6
    2025-11-17 · diff ↗
  • 1.0.5
    2025-08-25 · diff ↗
  • 1.0.4
    2025-04-28 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.3
    2025-04-01 · diff ↗
  • 1.0.2
    2025-02-07 · diff ↗
  • 1.0.1
    2025-01-16 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.2
    2023-05-04 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.1
    2023-02-27 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
Show 4 earlier events
  • 0.2.0
    2021-01-28 · diff ↗
  • 0.1.4
    2021-01-21 · diff ↗
  • 0.1.3
    2020-09-04 · diff ↗
  • 0.1.2
    2020-09-03

Package metadata

First published
2020-09-03
Total releases
14 / 6 yrs
License
MIT + file LICENSE OSI
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet