Skip to content

A Python package implementing Structural Causal Models (SCMs).

License

Notifications You must be signed in to change notification settings

Black-Swan-ICL/StructuralCausalModels

Repository files navigation

Build Status License: MIT

StructuralCausalModels

Description

A Python package implementing Structural Causal Models (SCMs).

The package makes it possible to go from Structural Causal Models to Graphs. It is also possible to generate a Linear Structural Causal Model directly from a coefficient matrix (i.e. the weighted adjacency matrix of the graph).

'Graph' objects are defined by giving an adjacency matrix (and a name, optionally). They contain and maintain different representations of a graph which can be useful depending on the circumstances, and tools to go from any one representation to any other.

The representations implemented at present are:

  • via an adjacency matrix,
  • via adjacency lists,
  • via edges ("typed" edges : no edge, forward, backward or undirected edge).

Documentation

The documentation for the package is available here.

About

A Python package implementing Structural Causal Models (SCMs).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages