{"adoption": {"forks": 235, "observed_at": "2026-08-28T04:04:58.309002+00:00", "stars": 1525}, "canonical_url": "https://ross.abutalabs.com/products/dice", "card": {"archived": false, "artifact_type": "library", "description": "Generate Diverse Counterfactual Explanations for any machine learning model. ", "domain": ["machine-learning", "artificial-intelligence", "data-science"], "enriched": true, "function": ["machine-learning", "nlp"], "health_score": 53, "homepage": "https://interpretml.github.io/DiCE/", "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["interpretml/DiCE"], "name": "interpretml/DiCE", "platform": ["python"], "pushed_at": "2025-07-13T17:34:53+00:00", "repo": "interpretml/DiCE", "stars": 1525, "tags": ["counterfactual-explanations", "explainable-ai", "xai", "interpretable-ml", "model-agnostic", "what-if-explanations"], "topics": ["counterfactual-explanations", "explainable-ml", "xai", "interpretable-machine-learning", "deep-learning", "machine-learning", "explainable-ai"], "urls": [], "use_cases": ["explain why a loan application was rejected and what would change the outcome", "generate counterfactual examples for a scikit-learn classifier", "produce what-if explanations for a deep learning model", "audit model decisions in finance or healthcare with actionable explanations", "generate diverse counterfactuals for a black-box ML model", "complement SHAP or LIME explanations with counterfactuals"], "what_it_is": "DiCE is a Python library that generates diverse counterfactual explanations for any machine learning model, showing feature-perturbed versions of an input that would flip the model's decision. It supports model-agnostic methods (random sampling, genetic search, KD-tree) as well as gradient-based methods for TensorFlow and PyTorch models.", "when_to_avoid": ["you need feature-importance or attribution explanations rather than counterfactuals", "you work outside Python or need a GUI-based explanation tool", "your model is a simple linear model where counterfactuals add little value", "you need real-time explanations with strict latency constraints"], "when_to_choose": ["you need actionable 'what-if' explanations for model predictions", "you want model-agnostic counterfactual generation across sklearn, TensorFlow, or PyTorch models", "you need multiple diverse counterfactuals rather than a single nearest example", "you are doing explainable AI research or building XAI pipelines in Python"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/dice", "repo": "interpretml/DiCE", "role": "main", "score": 37}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:31:39.687445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2210293cf8872c0231777587af591f67e1ac4c06a46dd8b218cffe6be690d825", "fetched_at": "2026-08-28T04:04:58.309002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/interpretml/DiCE"}, {"content_hash": "0c8cb07d8ba5c3b4b7c7fb05e4f1852bf426baaaa7eb6b7b3acaba371e91cd90", "fetched_at": "2026-08-29T11:34:19.676398+00:00", "kind": "homepage", "missing": false, "url": "https://interpretml.github.io/DiCE/"}, {"content_hash": "1986bc6c04f5a7b4f483435eba8805c7efae84b836d6812a83c619d6f5d805c2", "fetched_at": "2026-08-29T11:34:19.685831+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/readme.html"}, {"content_hash": "3561e6380a192a087e2662704357b8bc97298bc21d2ff867b1545e37f162cf1b", "fetched_at": "2026-08-29T11:34:19.688211+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/notebooks/DiCE_model_agnostic_CFs.html"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:31:39.687445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2210293cf8872c0231777587af591f67e1ac4c06a46dd8b218cffe6be690d825", "fetched_at": "2026-08-28T04:04:58.309002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/interpretml/DiCE"}, {"content_hash": "0c8cb07d8ba5c3b4b7c7fb05e4f1852bf426baaaa7eb6b7b3acaba371e91cd90", "fetched_at": "2026-08-29T11:34:19.676398+00:00", "kind": "homepage", "missing": false, "url": "https://interpretml.github.io/DiCE/"}, {"content_hash": "1986bc6c04f5a7b4f483435eba8805c7efae84b836d6812a83c619d6f5d805c2", "fetched_at": "2026-08-29T11:34:19.685831+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/readme.html"}, {"content_hash": "3561e6380a192a087e2662704357b8bc97298bc21d2ff867b1545e37f162cf1b", "fetched_at": "2026-08-29T11:34:19.688211+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/notebooks/DiCE_model_agnostic_CFs.html"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:31:39.687445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2210293cf8872c0231777587af591f67e1ac4c06a46dd8b218cffe6be690d825", "fetched_at": "2026-08-28T04:04:58.309002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/interpretml/DiCE"}, {"content_hash": "0c8cb07d8ba5c3b4b7c7fb05e4f1852bf426baaaa7eb6b7b3acaba371e91cd90", "fetched_at": "2026-08-29T11:34:19.676398+00:00", "kind": "homepage", "missing": false, "url": "https://interpretml.github.io/DiCE/"}, {"content_hash": "1986bc6c04f5a7b4f483435eba8805c7efae84b836d6812a83c619d6f5d805c2", "fetched_at": "2026-08-29T11:34:19.685831+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/readme.html"}, {"content_hash": "3561e6380a192a087e2662704357b8bc97298bc21d2ff867b1545e37f162cf1b", "fetched_at": "2026-08-29T11:34:19.688211+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/notebooks/DiCE_model_agnostic_CFs.html"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:31:39.687445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2210293cf8872c0231777587af591f67e1ac4c06a46dd8b218cffe6be690d825", "fetched_at": "2026-08-28T04:04:58.309002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/interpretml/DiCE"}, {"content_hash": "0c8cb07d8ba5c3b4b7c7fb05e4f1852bf426baaaa7eb6b7b3acaba371e91cd90", "fetched_at": "2026-08-29T11:34:19.676398+00:00", "kind": "homepage", "missing": false, "url": "https://interpretml.github.io/DiCE/"}, {"content_hash": "1986bc6c04f5a7b4f483435eba8805c7efae84b836d6812a83c619d6f5d805c2", "fetched_at": "2026-08-29T11:34:19.685831+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/readme.html"}, {"content_hash": "3561e6380a192a087e2662704357b8bc97298bc21d2ff867b1545e37f162cf1b", "fetched_at": "2026-08-29T11:34:19.688211+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/notebooks/DiCE_model_agnostic_CFs.html"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:31:39.687445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2210293cf8872c0231777587af591f67e1ac4c06a46dd8b218cffe6be690d825", "fetched_at": "2026-08-28T04:04:58.309002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/interpretml/DiCE"}, {"content_hash": "0c8cb07d8ba5c3b4b7c7fb05e4f1852bf426baaaa7eb6b7b3acaba371e91cd90", "fetched_at": "2026-08-29T11:34:19.676398+00:00", "kind": "homepage", "missing": false, "url": "https://interpretml.github.io/DiCE/"}, {"content_hash": "1986bc6c04f5a7b4f483435eba8805c7efae84b836d6812a83c619d6f5d805c2", "fetched_at": "2026-08-29T11:34:19.685831+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/readme.html"}, {"content_hash": "3561e6380a192a087e2662704357b8bc97298bc21d2ff867b1545e37f162cf1b", "fetched_at": "2026-08-29T11:34:19.688211+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/notebooks/DiCE_model_agnostic_CFs.html"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:31:39.687445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2210293cf8872c0231777587af591f67e1ac4c06a46dd8b218cffe6be690d825", "fetched_at": "2026-08-28T04:04:58.309002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/interpretml/DiCE"}, {"content_hash": "0c8cb07d8ba5c3b4b7c7fb05e4f1852bf426baaaa7eb6b7b3acaba371e91cd90", "fetched_at": "2026-08-29T11:34:19.676398+00:00", "kind": "homepage", "missing": false, "url": "https://interpretml.github.io/DiCE/"}, {"content_hash": "1986bc6c04f5a7b4f483435eba8805c7efae84b836d6812a83c619d6f5d805c2", "fetched_at": "2026-08-29T11:34:19.685831+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/readme.html"}, {"content_hash": "3561e6380a192a087e2662704357b8bc97298bc21d2ff867b1545e37f162cf1b", "fetched_at": "2026-08-29T11:34:19.688211+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/notebooks/DiCE_model_agnostic_CFs.html"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:58.309002+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:31:39.687445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2210293cf8872c0231777587af591f67e1ac4c06a46dd8b218cffe6be690d825", "fetched_at": "2026-08-28T04:04:58.309002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/interpretml/DiCE"}, {"content_hash": "0c8cb07d8ba5c3b4b7c7fb05e4f1852bf426baaaa7eb6b7b3acaba371e91cd90", "fetched_at": "2026-08-29T11:34:19.676398+00:00", "kind": "homepage", "missing": false, "url": "https://interpretml.github.io/DiCE/"}, {"content_hash": "1986bc6c04f5a7b4f483435eba8805c7efae84b836d6812a83c619d6f5d805c2", "fetched_at": "2026-08-29T11:34:19.685831+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/readme.html"}, {"content_hash": "3561e6380a192a087e2662704357b8bc97298bc21d2ff867b1545e37f162cf1b", "fetched_at": "2026-08-29T11:34:19.688211+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/notebooks/DiCE_model_agnostic_CFs.html"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:31:39.687445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2210293cf8872c0231777587af591f67e1ac4c06a46dd8b218cffe6be690d825", "fetched_at": "2026-08-28T04:04:58.309002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/interpretml/DiCE"}, {"content_hash": "0c8cb07d8ba5c3b4b7c7fb05e4f1852bf426baaaa7eb6b7b3acaba371e91cd90", "fetched_at": "2026-08-29T11:34:19.676398+00:00", "kind": "homepage", "missing": false, "url": "https://interpretml.github.io/DiCE/"}, {"content_hash": "1986bc6c04f5a7b4f483435eba8805c7efae84b836d6812a83c619d6f5d805c2", "fetched_at": "2026-08-29T11:34:19.685831+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/readme.html"}, {"content_hash": "3561e6380a192a087e2662704357b8bc97298bc21d2ff867b1545e37f162cf1b", "fetched_at": "2026-08-29T11:34:19.688211+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/notebooks/DiCE_model_agnostic_CFs.html"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:31:39.687445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2210293cf8872c0231777587af591f67e1ac4c06a46dd8b218cffe6be690d825", "fetched_at": "2026-08-28T04:04:58.309002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/interpretml/DiCE"}, {"content_hash": "0c8cb07d8ba5c3b4b7c7fb05e4f1852bf426baaaa7eb6b7b3acaba371e91cd90", "fetched_at": "2026-08-29T11:34:19.676398+00:00", "kind": "homepage", "missing": false, "url": "https://interpretml.github.io/DiCE/"}, {"content_hash": "1986bc6c04f5a7b4f483435eba8805c7efae84b836d6812a83c619d6f5d805c2", "fetched_at": "2026-08-29T11:34:19.685831+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/readme.html"}, {"content_hash": "3561e6380a192a087e2662704357b8bc97298bc21d2ff867b1545e37f162cf1b", "fetched_at": "2026-08-29T11:34:19.688211+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/notebooks/DiCE_model_agnostic_CFs.html"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:31:39.687445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2210293cf8872c0231777587af591f67e1ac4c06a46dd8b218cffe6be690d825", "fetched_at": "2026-08-28T04:04:58.309002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/interpretml/DiCE"}, {"content_hash": "0c8cb07d8ba5c3b4b7c7fb05e4f1852bf426baaaa7eb6b7b3acaba371e91cd90", "fetched_at": "2026-08-29T11:34:19.676398+00:00", "kind": "homepage", "missing": false, "url": "https://interpretml.github.io/DiCE/"}, {"content_hash": "1986bc6c04f5a7b4f483435eba8805c7efae84b836d6812a83c619d6f5d805c2", "fetched_at": "2026-08-29T11:34:19.685831+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/readme.html"}, {"content_hash": "3561e6380a192a087e2662704357b8bc97298bc21d2ff867b1545e37f162cf1b", "fetched_at": "2026-08-29T11:34:19.688211+00:00", "kind": "site_page", "missing": false, "url": "http://interpret.ml/DiCE/notebooks/DiCE_model_agnostic_CFs.html"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 31, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2680, "days_push": 416, "days_rel": 416, "gap_med": null, "n_releases_24m": 1}, "score": 37, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}