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

Counterfactual Python Packages

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

Algorithms for explaining machine learning models

25K 3K 265
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.

17K 4 0
raphaelrrcoelho
causalrl

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

2K 0 2
OscarEngelbrektson
syntheticcontrolmethods

A Python package for causal inference using Synthetic Controls

2K 194 57
Minyus
causallift

CausalLift: Python package for Uplift Modeling for A/B testing and observational data.

582 357 45
carla-recourse
carla-recourse

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

409 303 65
jaineet17
causal-agent-replay

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

333 2 0
rmazzine
cfnow

Easiest way to generate counterfactual explanations

324 12 0
joemunene-by
ghostloop

The agent loop, embodied. A tool-using runtime + fail-closed safety pipeline + sim-first execution harness for embodied AI.

305 0 0
hellothere012
notaryos

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

276 1 0
COVID-19-Causal-Reasoning
bel2scm

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

269 10 4
burning-cost
insurance-counterfactual-sets

Weighted conformal prediction sets for individual insurance counterfactuals (Lei & Candès 2021) with sensitivity analysis (Jin et al. 2023) and FCA harm reporting

119 0 0
firmai
fairput

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

78 72 19
    • Data from PyPI, GitHub, ClickHouse, and BigQuery