Counterfactual explanation SDK for ML models
Top 29.1% on sourcepulse
DiCE provides diverse counterfactual explanations for any machine learning model, enabling users to understand "what-if" scenarios and actionable recourse. It is designed for ML model developers, decision subjects, and decision-makers seeking interpretable and truthful explanations.
How It Works
DiCE frames counterfactual explanation generation as an optimization problem, similar to finding adversarial examples. It aims to find feature-perturbed versions of an input that alter the model's prediction while ensuring diversity and feasibility of the changes. The library supports tunable parameters for diversity and proximity, as well as constraints on feature modifications to ensure practical relevance.
Quick Start & Requirements
pip install dice-ml
or conda install -c conda-forge dice-ml
.pip install -e .
.Highlighted Details
features_to_vary
, permitted_range
).Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
2 weeks ago
1 day