Crandore Hub

shapr

Prediction Explanation with Dependence-Aware Shapley Values

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.

Versions across snapshots

VersionRepositoryFileSize
1.0.8 rolling source/ R- shapr_1.0.8.tar.gz 3.2 MiB
1.0.8 rolling linux/jammy R-4.5 shapr_1.0.8.tar.gz 2.8 MiB
1.0.8 latest source/ R- shapr_1.0.8.tar.gz 3.2 MiB
1.0.8 latest linux/jammy R-4.5 shapr_1.0.8.tar.gz 2.8 MiB
1.0.8 2026-04-23 source/ R- shapr_1.0.8.tar.gz 3.2 MiB
1.0.8 2026-04-09 windows/windows R-4.5 shapr_1.0.8.zip 3.2 MiB
1.0.3 2025-04-20 source/ R- shapr_1.0.3.tar.gz 4.9 MiB

Dependencies (latest)

Imports

LinkingTo

Suggests