Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Counterfactual Explanations Python Packages

Python packages with the GitHub topic counterfactual-explanations. Sorted by monthly downloads, with stars and forks.
guillermo-navas-palencia
optbinning

Optimal binning: monotonic binning with constraints. Support batch & stream optimal binning. Scorecard modelling and counterfactual explanations.

221K 538 122
interpretml
dice-ml

Generate Diverse Counterfactual Explanations for any machine learning model.

36K 2K 236
sbobek
acfx

Actionable Counterfactual eXplanations

2K 2 2
wlazlod
treecf

Constrained, threshold-aware counterfactual explanations for tree ensembles (XGBoost, LightGBM, CatBoost, sklearn) — fast Rust genetic search, exact optimality proofs, certified infeasibility, and recourse regions.

971 2 0
birkhoffg
cfnet

A counterfactual explanation library using Jax

410 2 1
b-bayrak
ceval

CEval is a Python package for evaluating the quality of counterfactual explanations produced by any post-hoc XAI (Explainable AI) method. It computes 14 established metrics with a single call and works with diverse model architecture.

386 0 1
Samsung
langgraph-goat

Online explainability for LangGraph agents through counterfactual planning and reasoning provenance graphs.

325 23 0
sbobek
lux-explainer

Local Universal Rule-based Explanations

291 13 6
andreArtelt
ceml

CEML - Counterfactuals for Explaining Machine Learning models - A Python toolbox

286 47 13
rmazzine
cfnow

Easiest way to generate counterfactual explanations

272 11 0
javiermartinch
dicex

DiCEx: Directional counterfactual explanations

258 0 0
swarna-kpaul
genfact

Counterfactual causal analysis

225 1 2
BogdanTurbal
ellice

ElliCE: Efficient and Provably Robust Algorithmic Recourse via the Rashomon Sets

208 2 0
kuppireddybhageerathareddy1110
aizenx-xai

AizenX - Explainable AI toolkit for model interpretability and fairness

197 0 0
carla-recourse
carla-recourse

A library for counterfactual recourse

189 307 64
xiaohk
gamcoach

Personal coach to help you obtain desired AI decisions!

171 19 3
kesjien
wavexplain

Causal, counterfactual attribution for multi-series time-series forecasters

83 5 0
wmonteiro92
xmoai

eXplainable Artificial Intelligence using Multiobjective Optimization

77 2 0
wangyongjie-ntu
cfai

The package for counterfactual explanations on Pytorch platform

69 52 9
swarna-kpaul
genfact-swarna-kpaul

A model agnostic and gradient-free optimization method for generating counterfactuals

1 1 2
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology