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

Counterfactual Python Packages

Python packages with the GitHub topic counterfactual. Sorted by monthly downloads, with stars and forks.
SeldonIO
alibi

Algorithms for explaining machine learning models

6K 3K 268
noumenal-ai
causal-worlds

Generate fictional-but-coherent causal operations worlds (executable sim + time-series + ground-truth causal answer-key) from a natural-language description — for benchmarking causal-discovery and control agents.

2K 4 0
sauravsingla
decishift

Open-source ML behavioral regression testing for comparing decision-system versions, identifying changed actions, attributing shifts, and gating releases with Decision Contracts.

2K 0 2
OscarEngelbrektson
syntheticcontrolmethods

A Python package for causal inference using Synthetic Controls

1K 196 57
raphaelrrcoelho
causalrl

Causal reinforcement learning, organized around Bareinboim's 9-task taxonomy, confounded offline→online RL, POMIS, counterfactual policies, transportability, discovery, imitation, curricula.

696 0 2
Minyus
causallift

CausalLift: Python package for causality-based Uplift Modeling in real-world business

409 359 46
rmazzine
cfnow

Easiest way to generate counterfactual explanations

213 11 0
COVID-19-Causal-Reasoning
bel2scm

Generate dynamic structural causal models from biological knowledge graphs encoded in the Biological Expression Language (BEL)

171 10 4
carla-recourse
carla-recourse

CARLA: A Python Library to Benchmark Algorithmic Recourse and Counterfactual Explanation Algorithms

152 306 64
joemunene-by
ghostloop

The agent loop, embodied. Tool-using runtime + fail-closed safety pipeline + sim-first execution + statistically-rigorous bench harness + post-hoc analysis (counterfactual replay, causal attribution, LLM judge, property mining) for embodied AI. Sister project to GhostLM.

140 0 0
edujbarrios
vlm-prior-probe

Measure when a vision-language model follows visual evidence versus learned priors.

137 0 0
hellothere012
notaryos

Cryptographic receipt system for AI agent accountability. Tamper-evident, hash-chained receipts with Ed25519/HMAC signing.

131 1 1
jaineet17
causal-agent-replay

Counterfactual replay and causal attribution over LLM-agent trajectories: find which step actually caused a failure by intervening on it.

92 14 2
alex-hahn
whydunit

Find out why an LLM pipeline failed, by counterfactual replay instead of guesswork.

61 0 0
burning-cost
insurance-counterfactual-sets

Weighted conformal ITE for individual counterfactuals — Lei & Candès 2021, sensitivity analysis, FCA ENBP harm reports

60 0 0
firmai
fairput

FairPut - Machine Learning Fairness Framework with LightGBM — Explainability, Robustness, Fairness (by @firmai)

32 72 18
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology