shapr
1.0.8Prediction Explanation with Dependence-Aware Shapley Values
Overview
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
- OK2026-08-0413 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
- NOTE2026-04-2211 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1810 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 30%
- Documented parameters
- 87%
- Return-value docs
- 100%
- References docs
- 6%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Repository practices
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/norskregnesentral/shapr on 2026-08-16.
Show all practices
Development tooling
Uses AI-assisted development tooling (declared in repo)
Earliest detected marker: copilot on 2026-05-16
Most recent: copilot on 2026-05-16
- agents-md: on 2026-05-16 · evidence D
- copilot: on 2026-05-16 · evidence D, PR
Dependencies
Code & Tests
People & History
14 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.0.8Latest
- 1.0.72025-12-22 · diff ↗
- unarchivedReturned to CRAN2025-12-22
- archivedRemoved from CRAN2025-12-17issues were not corrected in time
- 1.0.62025-11-17 · diff ↗
- 1.0.52025-08-25 · diff ↗
- 1.0.42025-04-28 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.0.32025-04-01 · diff ↗
- 1.0.22025-02-07 · diff ↗
- unarchivedReturned to CRAN2025-02-07
- archivedRemoved from CRAN2025-01-30issues were not corrected in time, and for repeated policy violations including repeatedly spamming a team member in unreadably small HTML
- 1.0.12025-01-16 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.2.22023-05-04 · diff ↗
Show 11 earlier events
- RR 4.3.0 released · 2023-04-21
- 0.2.12023-02-27 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.2.02021-01-28 · diff ↗
- 0.1.42021-01-21 · diff ↗
- unarchivedReturned to CRAN2021-01-21
- archivedRemoved from CRAN2021-01-20check problems were not corrected in time
- 0.1.32020-09-04 · diff ↗
- 0.1.22020-09-03
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-09-03
- Total releases
- 14 / 6 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 3.3 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("shapr")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.