← Back to home
Comparison · Analytics

kernelshap vs mutagen

A side-by-side editorial comparison of kernelshap and mutagen — release velocity, themes, recent moves, and the top alternatives to consider.

kernelshap vs mutagen: at a glance

Featurekernelshapmutagen
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesshap, model explainability, sampling algorithms, numerical correctnessdata-manipulation, tidyverse, stata-port, r-package
Last editorial update8h ago1h ago
WebsiteVisit →Visit →

What is kernelshap?

kernelshap makes permutation SHAP practical past eight features, then fixes the kernel weights it had wrong.

kernelshap computes model-agnostic SHAP values in R through Kernel SHAP, permutation SHAP and an exact additive explainer. Version 0.8.0 added a sampling permutation-SHAP algorithm with standard errors and early stopping, lifting the practical feature ceiling past what the exact method allows. Version 0.9.0 then corrected a bug in how kernel weights were computed — exact Kernel SHAP now agrees with exact permutation SHAP — and moved parallelism from foreach to doFuture.

Read the full kernelshap trajectory →

What is mutagen?

A young package porting Stata's egen row-wise helpers to the tidyverse, one function per release

mutagen provides row-wise column-generation helpers for R data frames in the spirit of Stata's egen — gen_rowmean(), gen_rowsum(), gen_rowsd(), gen_rownonmiss() and about a dozen siblings. It reached 0.5.0 within three months of its first release, adding two or three functions each time. The most recent release adds gen_coldiff() and renames two functions to fit the naming scheme.

Read the full mutagen trajectory →

kernelshap vs mutagen: editorial side-by-side

K
kernelshap
ANALYTICS
0.0

kernelshap makes permutation SHAP practical past eight features, then fixes the kernel weights it had wrong.

◆ Current state

kernelshap computes model-agnostic SHAP values in R through Kernel SHAP, permutation SHAP and an exact additive explainer. Version 0.8.0 added a sampling permutation-SHAP algorithm with standard errors and early stopping, lifting the practical feature ceiling past what the exact method allows. Version 0.9.0 then corrected a bug in how kernel weights were computed — exact Kernel SHAP now agrees with exact permutation SHAP — and moved parallelism from foreach to doFuture.

◆ Where it's heading

Two concerns drive this package: making exact methods reach further, and being demonstrably right. The first shows in the additive explainer, the optional background dataset and the sampling permutation algorithm; the second in unit tests written against Python's shap, credited fixes from outside contributors, and a willingness to ship a correctness fix that changes numbers people have already published. Speed work runs continuously underneath — direct solves replacing the Moore-Penrose pseudo-inverse, roughly 10% less memory.

◆ Prediction

The 0.6.0 and 0.7.0 notes each promised a stable 1.0.0 that has not arrived; with the weighting bug fixed and parallelism reworked, a 1.0 release is the most plausible next step.

M
mutagen
ANALYTICS
0.0

A young package porting Stata's egen row-wise helpers to the tidyverse, one function per release

◆ Current state

mutagen provides row-wise column-generation helpers for R data frames in the spirit of Stata's egen — gen_rowmean(), gen_rowsum(), gen_rowsd(), gen_rownonmiss() and about a dozen siblings. It reached 0.5.0 within three months of its first release, adding two or three functions each time. The most recent release adds gen_coldiff() and renames two functions to fit the naming scheme.

◆ Where it's heading

The package is filling out a known surface rather than discovering one: the reference implementation exists in Stata, so development is a matter of working through the list. Alongside that, the naming convention is still settling — gen_rowmatch became gen_rowany, gen_percent became gen_colpercent, gen_na_listcol became gen_listcol_na — which is normal for a pre-1.0 package but means callers should expect further renames. Contributions are arriving from several first-time contributors.

◆ Prediction

The gen_col* prefix has only two members against a dozen gen_row* functions, so column-wise coverage is the obvious gap; expect it to fill before the naming stabilises for a 1.0.

Alternatives to kernelshap and mutagen

Other Analytics products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either kernelshap or mutagen.

See all kernelshap alternatives → · See all mutagen alternatives →

Recent activity from kernelshap and mutagen

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 8mo agomutagengen_coldiff() added; two functions renamed for consistency
  2. 9mo agomutagengen_rowsum() and gen_rowsd() added
  3. 9mo agomutagengen_rownonmiss() and gen_rowall() added
  4. 9mo agomutagenRow mean, median and missingness helpers; gen_rowmatch renamed
  5. 11mo agomutagenFirst release with the row-wise gen_* family
  6. 1y agokernelshapKernel weight bug fixed; parallelism moves to doFuture
  7. 1y agokernelshapSampling permutation SHAP with standard errors
  8. 1y agokernelshapBackground data now optional; ranger survival support
  9. 2y agokernelshapFactor-valued predictions dropped
  10. 2y agokernelshapadditive_shap() explains additive models exactly
  11. 2y agokernelshapFaster on plain data.frames

Frequently asked questions

What is the difference between kernelshap and mutagen?

They serve adjacent needs but don't currently overlap on shipped themes. kernelshap and mutagen are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is kernelshap better than mutagen?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. kernelshap and mutagen are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.

What are the best alternatives to kernelshap?

Top kernelshap alternatives in Analytics are ranked by recent ship velocity. Browse the "kernelshap alternatives" section above for the current picks, or visit /alternatives/kernelshap for the full list with editorial commentary on each.

What are the best alternatives to mutagen?

Top mutagen alternatives in Analytics are ranked by recent ship velocity. Browse the "mutagen alternatives" section above for the current picks, or visit /alternatives/mutagen-r for the full list with editorial commentary on each.