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

3032nd

1.6K

Last 90 days

1.6K

Last year

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 (14 non-OK)
OK 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

*


            
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
OK 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

*


            

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 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

Dependency Network

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

Version History

new 1.0.8 Mar 9, 2026