/causalscm

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Code style: black

Causal Inference: Structural Causal Modeling

causalscm is a Python library for working with causal models.

Why?

Representation of causal inference models in Python are severely lacking. Moreover, sampling from causal models is non-trivial. However, sampling from simulations is a requirement to benchmark different structural learning, causal ID, or other causal related algorithms.

This package aims at serving as a framework for representing causal models and sampling from causal models.

causalscm interfaces with other popular Python packages, such as pgmpy and networkx for graphical representations.

Documentation

See here: TBD

Installation

You can install via pip with

pip install causalscm

or directly from github

pip install -U https://github.com/adam2392/causalscm/archive/main.zip

See our installation page for more details.