PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Counterfactual Explanations Python Packages

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

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

215K 523 116
interpretml
dice-ml

Generate Diverse Counterfactual Explanations for any machine learning model.

44K 2K 229
sbobek
acfx

Actionable Counterfactual eXplanations

3K 2 1
b-bayrak
ceval

A framework for evaluating counterfactual explanations.

954 0 0
andreArtelt
ceml

Counterfactuals for explaining machine learning models - A Python toolbox

758 47 13
carla-recourse
carla-recourse

A library for counterfactual recourse

640 302 65
birkhoffg
cfnet

A counterfactual explanation library using Jax

551 2 1
rmazzine
cfnow

Generate counterfactuals with ease. This package takes a model and point (with a certain class) and minimally changes it to flip the classification result.

341 11 0
sbobek
lux-explainer

Local Universal Rule-based Explanations

278 13 6
BogdanTurbal
ellice

An efficient + provably robust implementation of algorithmic recourse via Rashomon sets in PyTorch & Scikit-Learn (NeurIPS '25 Spotlight)

231 1 0
swarna-kpaul
genfact

Counterfactual causal analysis

219 1 2
kuppireddybhageerathareddy1110
aizenx-xai

AizenX is an open-source Explainable AI (XAI) framework for model interpretation, counterfactual analysis, bias detection, and visualization.

189 0 0
xiaohk
gamcoach

Personal coach to help you obtain desired AI decisions!

169 20 3
wmonteiro92
xmoai

eXplainable Artificial Intelligence using Multiobjective Optimization

105 2 0
wangyongjie-ntu
cfai

A collection of algorithms of counterfactual explanations.

75 53 9
    • Data from PyPI, GitHub, ClickHouse, and BigQuery