DiCE
DiCE: A free Python library for exploring alternative predictions with configurable counterfactuals. Ranked #14 of 29 in AI Model Explainability Software by our editors (6.9/10); pricing: Free plan; best for teams focused on actionable counterfactual examples.
At a glance
- Editor score6.9 / 10
- PricingFree plan
- Best forTeams focused on actionable counterfactual examples
- Free planYes
- Paid fromNone
- Feature attributionYes
- Founded2018
- Facts checked28 Sep 2026
Where it wins
- Generates multiple counterfactuals with configurable diversity and proximity
- Offers feature constraints and randomized, KD-tree, and genetic search
- Works with scikit-learn, TensorFlow, and PyTorch models
Where it doesn't
- Focused on counterfactual explanations rather than broad explainability
- Does not currently provide fairness evaluation
- Requires a developer workflow as a Python library, not a hosted service
Our verdict on DiCE
DiCE is an open-source Python library from Microsoft Research for generating diverse counterfactual explanations of machine-learning predictions. It is aimed at developers and researchers who want to examine how alternative input values could change a model output. Its examples cover classification and regression with scikit-learn, TensorFlow, and PyTorch models, and it can work with pre-trained models with or without access to the full training dataset.
The main strength is control over counterfactual generation. Users can configure diversity and proximity, set feature constraints and permitted ranges, and select which features may vary. DiCE provides model-agnostic randomized sampling, KD-tree, and genetic search methods, as well as gradient-based generation for differentiable models. It also derives local feature-importance scores from counterfactuals and can show results in tabular form or save them. Feature metadata can be used instead of the full sensitive dataset, which may suit workflows where that dataset is not available to the explanation step.
DiCE is free and self-hosted, with Linux, Windows, and macOS listed as platforms. Its fit is strongest for teams that can work in Python and specifically need actionable alternative examples; its documented connections to scikit-learn, TensorFlow, and PyTorch support those model workflows. The tradeoff is a narrower scope than a general explainability suite: it focuses on counterfactuals and related local importance, and fairness evaluation is not currently provided. Choose DiCE when counterfactual exploration is the central task; consider another tool if fairness analysis or a broader explanation workflow is required.
DiCE pricing
DiCE fact sheet
| Free plan | Yes |
|---|---|
| Paid from | None |
| Feature attribution | Yes |
| Counterfactual explanations | Yes |
| Fairness analysis | No |
| Audit reports | Not verified |
| Deployment options | Self_hosted |
| Supported model types | scikit-learn, TensorFlow, PyTorch; classifiers and regressors |
| Deployment | Self-hosted |
| Platforms | Linux, Windows, macOS |
| Support | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 3 integrations: scikit-learn, TensorFlow, PyTorch |
| Pricing | Free plan |
| Website | interpret.ml |
| Facts checked | 28 Sep 2026 |
DiCE integrations
DiCE lists 3 integrations on its own site.
- scikit-learn
- TensorFlow
- PyTorch
Alternatives to DiCE
- 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
Used DiCE? 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 DiCE 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
DiCE 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/dice/"><img src="https://www.itechguides.com/best/badge/dice.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
