Skip to content

shapr

Prediction Explanation with Dependence-Aware Shapley Values

v1.0.8 · Jan 20, 2026 · MIT + file LICENSE

Description

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.

Downloads

1.6K

Last 30 days

3062nd

6.2K

Last 90 days

34.4K

Last year

Trend: -0.9% (30d vs prior 30d)

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (3 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is  8.4Mb
  sub-directories of 1Mb or more:
    doc    3.1Mb
    libs   4.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  8.5Mb
  sub-directories of 1Mb or more:
    doc    3.1Mb
    libs   4.0Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.7Mb
  sub-directories of 1Mb or more:
    doc    3.1Mb
    libs   1.3Mb

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  8.4Mb
  sub-directories of 1Mb or more:
    doc    3.1Mb
    libs   4.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  8.5Mb
  sub-directories of 1Mb or more:
    doc    3.1Mb
    libs   4.0Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.7Mb
  sub-directories of 1Mb or more:
    doc    3.1Mb
    libs   1.3Mb

Reverse Dependencies (2)

suggests

Dependency Network

Dependencies Reverse dependencies data.table Rcpp Matrix future.apply cli rlang futurize rtemis shapr

Version History

new 1.0.8 Mar 10, 2026
updated 1.0.8 ← 1.0.7 diff Jan 19, 2026
updated 1.0.7 ← 1.0.6 diff Dec 21, 2025
updated 1.0.6 ← 1.0.5 diff Nov 16, 2025
updated 1.0.5 ← 1.0.4 diff Aug 24, 2025
updated 1.0.4 ← 1.0.3 diff Apr 27, 2025
updated 1.0.3 ← 1.0.2 diff Mar 31, 2025
updated 1.0.2 ← 1.0.1 diff Feb 6, 2025
updated 1.0.1 ← 0.2.2 diff Jan 15, 2025
updated 0.2.2 ← 0.2.1 diff May 3, 2023
updated 0.2.1 ← 0.2.0 diff Feb 26, 2023
updated 0.2.0 ← 0.1.4 diff Jan 27, 2021
updated 0.1.4 ← 0.1.3 diff Jan 20, 2021
updated 0.1.3 ← 0.1.2 diff Sep 3, 2020
new 0.1.2 Sep 2, 2020