kernelshap
0.9.1Kernel SHAP
Overview
Efficient implementation of Kernel SHAP (Lundberg and Lee, 2017, <doi:10.48550/arXiv.1705.07874>) permutation SHAP, and additive SHAP for model interpretability. For Kernel SHAP and permutation SHAP, if the number of features is too large for exact calculations, the algorithms iterate until the SHAP values are sufficiently precise in terms of their standard errors. The package integrates smoothly with meta-learning packages such as 'tidymodels', 'caret' or 'mlr3'. It supports multi-output models, case weights, and parallel computations. Visualizations can be done using the R package 'shapviz'.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Dependencies
Code & Tests
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
46 4 exported
Complexity
3.7 avg / 22 max
Call network
46 nodes / 59 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
19 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.9.1Latest
- 0.9.02025-07-25 · diff ↗
- 0.8.02025-07-09 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.7.02024-08-17 · diff ↗
- 0.6.02024-07-12 · diff ↗
- 0.5.02024-05-26 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.4.12023-12-03 · diff ↗
- 0.4.02023-11-10 · diff ↗
- 0.3.82023-09-23 · diff ↗
- 0.3.72023-05-17 · diff ↗
- 0.3.62023-05-03 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.3.52023-03-31 · diff ↗
Package metadata
- First published
- 2022-08-12
- Total releases
- 19 / 4 yrs
- License
- GPL (>= 2) OSI
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet