fastshap
fastshap: A focused R toolkit for feature attribution, with model-agnostic and tree-model workflows. Ranked #22 of 29 in AI Model Explainability Software by our editors (6.1/10); pricing: Free plan; best for R users needing SHAP values for supervised models.
At a glance
- Editor score6.1 / 10
- PricingFree plan
- Best forR users needing SHAP values for supervised models
- Free planYes
- Paid fromNone
- Feature attributionYes
- Facts checked28 Sep 2026
Where it wins
- Approximate Shapley values work with user-supplied prediction functions
- Exact values for linear models and Tree SHAP for xgboost and lightgbm
- Interaction decomposition and per-simulation values support deeper analysis
Where it doesn't
- Focused on feature attribution, not a broader explanation workflow
- Requires fitted models and an R prediction function
- Distributed through r-universe; documentation says it is no longer on CRAN
Our verdict on fastshap
fastshap is an open-source R package for attributing supervised-model predictions to input features. It is aimed at R users who already work with fitted machine-learning models and need Shapley-based explanations. Rather than a hosted service, it runs in the user's environment, with Linux, macOS, and Windows listed as supported platforms. Its model-agnostic workflow relies on a prediction function supplied by the user, making the package applicable to supervised models that can be exposed through that interface.
The package offers approximate Shapley values calculated with Monte Carlo methods, plus exact Shapley values for linear models and Tree SHAP support for xgboost and lightgbm. Documentation also describes deterministic decomposition into main, total, and interaction effects. Optional parallel computation across features can help with computation, while raw per-simulation Shapley values provide a way to assess Monte Carlo uncertainty. Outputs are compatible with shapviz plotting functions, giving R users a visualization path without turning fastshap into a broader interpretability suite.
This is a narrow tool for feature attribution, not an end-to-end explanation or governance product: its listed capabilities do not include counterfactuals, fairness analysis, or audit reports. It is free and open source, with documentation available; distribution is through r-universe, and the documentation says it is no longer available on CRAN. Choose fastshap if Shapley explanations, especially for linear or supported tree models, are the work at hand and a user-managed R workflow fits. Consider another option if you need a hosted service or a wider explanation workflow.
fastshap pricing
fastshap fact sheet
| Free plan | Yes |
|---|---|
| Paid from | None |
| Feature attribution | Yes |
| Counterfactual explanations | No |
| Fairness analysis | No |
| Audit reports | No |
| Deployment options | Self_hosted |
| Supported model types | Any supervised learning model in R via a user-supplied prediction function; exact support documented for linear models (lm), xgboost, and lightgbm |
| Deployment | Self-hosted |
| Platforms | Linux, macOS, Windows |
| Support | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 3 integrations: xgboost, lightgbm, shapviz |
| Pricing | Free plan |
| Website | bgreenwell.github.io |
| Facts checked | 28 Sep 2026 |
fastshap integrations
fastshap lists 3 integrations on its own site.
- xgboost
- lightgbm
- shapviz
Alternatives to fastshap
- AIX360A broad, self-hosted Python toolkit for local, global, and time-series model explanations.9.1
- Arize AIProduction-focused explainability pairs feature attribution with fairness monitoring and model comparisons.8.5
- Fiddler AIA tracing and evaluation platform for teams debugging LLM and agent workflows.7.4
See all fastshap alternatives →
Used fastshap? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used fastshap for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
fastshap is listed in our AI Model Explainability Software directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/fastshap/"><img src="https://www.itechguides.com/best/badge/fastshap.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. How we rank.
Last updated · How we research and update
