Skip to content

kernelshap

0.9.1

Kernel SHAP

7packages depend
126.7Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Michael MayerFirst published 2022-08-1219 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Code health
Yes
Tests · ratio 0.54
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
Yes
README
4
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

126.7K
CRAN downloads in the past year
Rank #1,365 · ~347/day · ~10.6K/mo
kernelshap
Daily download trend is not available in this view yet.
7K30 days
25.5K90 days
126.7K1 year
Compare downloads with other packages →
Also on4.6K r2u17 autocran1.4K conda_forge37 c2d4u
Source & community
GitHub ↗

Repository stars, issues, and contributor activity are not tracked yet.

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.2.0
Imports (4)
doFutureforeachstatsutils
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
7direct
indirect (not tracked)

Code & Tests

Code Composition
R 2,851 (82%)Rd 631 (18%)

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.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Contributors (1)
Contributor
Release timeline

19 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.9.1Latest
    2025-09-20 · current release · diff ↗
  • 0.9.0
    2025-07-25 · diff ↗
  • 0.8.0
    2025-07-09 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.7.0
    2024-08-17 · diff ↗
  • 0.6.0
    2024-07-12 · diff ↗
  • 0.5.0
    2024-05-26 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.4.1
    2023-12-03 · diff ↗
  • 0.4.0
    2023-11-10 · diff ↗
  • 0.3.8
    2023-09-23 · diff ↗
  • 0.3.7
    2023-05-17 · diff ↗
  • 0.3.6
    2023-05-03 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.3.5
    2023-03-31 · diff ↗
Show 8 earlier events
  • 0.3.4
    2023-02-26 · diff ↗
  • 0.3.3
    2023-01-11 · diff ↗
  • 0.3.2
    2022-12-17 · diff ↗
  • 0.3.1
    2022-11-18 · diff ↗
  • 0.3.0
    2022-09-29 · diff ↗
  • 0.2.0
    2022-09-05 · diff ↗
  • 0.1.0
    2022-08-12
  • R
    R 4.2.0 released · 2022-04-22

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