Skip to content
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.
mirzahusadzic
midwife

Does a decision rest on the evidence you think it does? Gadfly cuts or changes one declared line in fixed ways, asks the reader again, and reads the verdict by fixed rules, not a model.

11K 0 0
SeldonIO
alibi

Algorithms for explaining machine learning models

8K 3K 268
noumenal-ai
causal-worlds

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

1K 4 0
OscarEngelbrektson
syntheticcontrolmethods

A Python package for causal inference using Synthetic Controls

1K 197 57
raphaelrrcoelho
causalrl

Causal reinforcement learning: the 9-task causal RL taxonomy, made runnable.

625 0 2
Minyus
causallift

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

524 360 46
joemunene-by
ghostloop

Fail-closed safety runtime for embodied agents: simulation backends, policy gates, benchmark harness.

273 0 0
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.

272 11 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.

262 0 1
COVID-19-Causal-Reasoning
bel2scm

A package for creating causal graphs in pyro

244 10 4
jaineet17
causal-agent-replay

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

195 17 2
carla-recourse
carla-recourse

A library for counterfactual recourse

189 307 64
hellothere012
notaryos

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

126 1 1
edujbarrios
vlm-prior-probe

Black-box behavioral probes for measuring visual-evidence reliance and learned-prior persistence in Vision-Language Models.

108 0 0
burning-cost
insurance-counterfactual-sets

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

78 0 0
alex-hahn
whydunit

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

68 0 0
firmai
fairput

Fair Machine Learning Outputs

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