Skip to content

kernelshap

Kernel SHAP

v0.9.1 · Sep 20, 2025 · GPL (>= 2)

Description

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'.

Downloads

7.9K

Last 30 days

1397th

25K

Last 90 days

104.3K

Last year

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

CRAN Check Status

14 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 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 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 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (5)

imports

suggests

Dependency Network

Dependencies Reverse dependencies doFuture foreach DALEX SEMdeep survex futurize mrIML kernelshap

Version History

new 0.9.1 Mar 10, 2026
updated 0.9.1 ← 0.9.0 diff Sep 19, 2025
updated 0.9.0 ← 0.8.0 diff Jul 24, 2025
updated 0.8.0 ← 0.7.0 diff Jul 8, 2025
updated 0.7.0 ← 0.6.0 diff Aug 16, 2024
updated 0.6.0 ← 0.5.0 diff Jul 11, 2024
updated 0.5.0 ← 0.4.1 diff May 25, 2024
updated 0.4.1 ← 0.4.0 diff Dec 2, 2023
updated 0.4.0 ← 0.3.8 diff Nov 9, 2023
updated 0.3.8 ← 0.3.7 diff Sep 22, 2023
updated 0.3.7 ← 0.3.6 diff May 16, 2023
updated 0.3.6 ← 0.3.5 diff May 2, 2023
updated 0.3.5 ← 0.3.4 diff Mar 30, 2023
updated 0.3.4 ← 0.3.3 diff Feb 25, 2023
updated 0.3.3 ← 0.3.2 diff Jan 10, 2023
updated 0.3.2 ← 0.3.1 diff Dec 16, 2022
updated 0.3.1 ← 0.3.0 diff Nov 17, 2022
updated 0.3.0 ← 0.2.0 diff Sep 28, 2022
updated 0.2.0 ← 0.1.0 diff Sep 4, 2022
new 0.1.0 Aug 11, 2022