interpretml/DiCE
DiCE generates diverse counterfactual explanations to explain any machine learning model's predictions.

Velocity · 7d
+0.6
★ / day
Trend
→steady
star history
DiCE (Diverse Counterfactual Explanations) is an explainable AI library that generates multiple possible counterfactuals showing how inputs could change to achieve different outcomes. It works with any machine learning model including sklearn, TensorFlow, and PyTorch. The tool helps users understand model behavior by presenting actionable, interpretable alternatives to specific predictions.