← Back to home
Comparison · Analytics

gtfstools vs kernelshap

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

gtfstools vs kernelshap: at a glance

Featuregtfstoolskernelshap
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesgtfs, public-transport, geospatial, r-packageshap, model explainability, sampling algorithms, numerical correctness
Last editorial update49m ago9h ago
WebsiteVisit →Visit →

What is gtfstools?

gtfstools stopped guarding its own object model and started accepting everyone else's.

gtfstools reads, edits, filters and validates GTFS public transport feeds in R on a data.table backend. Since 1.3.0 it accepts GTFS objects produced by other packages such as gtfsio and tidytransit, converting them through an as_dt_gtfs() generic. Validation runs MobilityData's canonical validator, now supported through v6.0.0.

Read the full gtfstools trajectory →

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 →

gtfstools vs kernelshap: editorial side-by-side

G
gtfstools
ANALYTICS
0.0

gtfstools stopped guarding its own object model and started accepting everyone else's.

◆ Current state

gtfstools reads, edits, filters and validates GTFS public transport feeds in R on a data.table backend. Since 1.3.0 it accepts GTFS objects produced by other packages such as gtfsio and tidytransit, converting them through an as_dt_gtfs() generic. Validation runs MobilityData's canonical validator, now supported through v6.0.0.

◆ Where it's heading

The package built out a wide function surface first — filters, geometry conversion, speed and duration calculations — then turned outward. Delegating validation to MobilityData's validator and accepting other packages' objects both trade self-sufficiency for a position inside the wider GTFS ecosystem. Deprecations are handled slowly, with old behaviour left as the default for a release or more.

◆ Prediction

Expect continued validator version tracking and further completion of the deprecation cycle around filter_by_stop_id()'s full_trips behaviour.

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.

Alternatives to gtfstools and kernelshap

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 gtfstools or kernelshap.

See all gtfstools alternatives → · See all kernelshap alternatives →

Recent activity from gtfstools and kernelshap

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

  1. 1y agokernelshapKernel weight bug fixed; parallelism moves to doFuture
  2. 1y agokernelshapSampling permutation SHAP with standard errors
  3. 1y agogtfstoolsSupports canonical GTFS validator v5 and v6
  4. 1y agogtfstoolsAccepts GTFS objects from gtfsio and tidytransit
  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 agokernelshapFaster on plain data.frames
  9. 3y agogtfstoolsValidation delegated to MobilityData's canonical validator
  10. 4y agogtfstoolsAdds time-of-day, weekday and frequency filtering functions
  11. 4y agogtfstoolsEstablishes the core GTFS filtering and sf conversion family

Frequently asked questions

What is the difference between gtfstools and kernelshap?

They serve adjacent needs but don't currently overlap on shipped themes. gtfstools and kernelshap 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 gtfstools better than kernelshap?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. gtfstools and kernelshap 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 gtfstools?

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

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.