← Back to home
Comparison · Analytics

kernelshap vs stringi

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

kernelshap vs stringi: at a glance

Featurekernelshapstringi
SectorAnalyticsAnalytics
Velocity score0.02.5
Sparks · 30d00
Top themesshap, model explainability, sampling algorithms, numerical correctnessunicode, icu, build-portability, string-processing
Last editorial update3h ago48m 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 stringi?

stringi has spent two years on build hardening since its Unicode 15.1 reset.

stringi is the ICU-backed string engine under a large share of R's text handling. Since the 1.8.1 reset in late 2023 — which bundled ICU 74.1, dropped Solaris, and raised the compiler floor — every subsequent release has been build and portability maintenance: PROTECT-stack fixes, Windows build errors, compiler warnings. The 1.8.8 release in July 2026 continues that pattern by dropping the configure script's C++11 fallback.

Read the full stringi trajectory →

kernelshap vs stringi: 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.

S
stringi
ANALYTICS
2.5

stringi has spent two years on build hardening since its Unicode 15.1 reset.

◆ Current state

stringi is the ICU-backed string engine under a large share of R's text handling. Since the 1.8.1 reset in late 2023 — which bundled ICU 74.1, dropped Solaris, and raised the compiler floor — every subsequent release has been build and portability maintenance: PROTECT-stack fixes, Windows build errors, compiler warnings. The 1.8.8 release in July 2026 continues that pattern by dropping the configure script's C++11 fallback.

◆ Where it's heading

The package has reached feature stability and is maintained as infrastructure. Releases arrive when a toolchain, platform, or check regime changes, not when users ask for capability. The two-and-a-half year gap between 1.8.1's Unicode bump and anything comparable suggests the next directional move will again be an ICU bundle refresh rather than new API surface.

◆ Prediction

The next release is most likely another build-time fix or an ICU bundle update to a newer Unicode version; the entries show no in-progress feature work.

Alternatives to kernelshap and stringi

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

See all kernelshap alternatives → · See all stringi alternatives →

Recent activity from kernelshap and stringi

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

  1. 17d agostringiConfigure script drops the C++11 fallback
  2. 1y agokernelshapKernel weight bug fixed; parallelism moves to doFuture
  3. 1y agokernelshapSampling permutation SHAP with standard errors
  4. 1y agostringiPROTECT stack imbalance fixed in stri_encode_from_marked
  5. 1y agokernelshapBackground data now optional; ranger survival support
  6. 2y agokernelshapFactor-valued predictions dropped
  7. 2y agokernelshapadditive_shap() explains additive models exactly
  8. 2y agostringiWindows build errors fixed
  9. 2y agostringiFormat-string warnings cleared
  10. 2y agokernelshapFaster on plain data.frames
  11. 2y agostringi32-bit Windows and Loongarch builds restored
  12. 2y agostringiICU 74.1 bundle lands; Solaris support dropped

Frequently asked questions

What is the difference between kernelshap and stringi?

They serve adjacent needs but don't currently overlap on shipped themes. stringi is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is kernelshap better than stringi?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. stringi is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. 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 stringi?

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