Skip to main content

CausalDynamics: A large-scale benchmark for structural discovery of dynamical causal models

Project description

CausalDynamics: A large-scale benchmark for structural discovery of dynamical causal models

Homepage Huggingface Dataset License Badge Tests

A comprehensive benchmark framework designed to rigorously evaluate state-of-the-art causal discovery algorithms for dynamical systems.

Key Features

Overview of CausalDynamics

1️⃣ Large-Scale Benchmark. Systematically evaluate state-of-the-art causal discovery algorithms on thousands of graph challenges with increasing difficulty.

2️⃣ Customizable Data Generation. Scalable, user-friendly generation of increasingly complex coupled ordinary and stochastic systems of differential equations

3️⃣ Diverse Challenges. From simple chaotic systems to modular causal coupling of dynamical systems, including optional noise, confounding, time lags, and even climate model dynamics.

Abstract: Causal discovery for dynamical systems poses a major challenge in fields where active interventions are infeasible. Most methods used to investigate these systems and their associated benchmarks are tailored to deterministic, low-dimensional and weakly nonlinear time-series data. To address these limitations, we present CausalDynamics, a large-scale benchmark and extensible data generation framework to advance the structural discovery of dynamical causal models. Our benchmark consists of true causal graphs derived from thousands of coupled ordinary and stochastic differential equations as well as two idealized climate models. We perform a comprehensive evaluation of state-of-the-art causal discovery algorithms for graph reconstruction on systems with noisy, confounded, and lagged dynamics. CausalDynamics consists of a plug-and-play, build-your-own coupling workflow that enables the construction of a hierarchy of physical systems. We anticipate that our framework will facilitate the development of robust causal discovery algorithms that are broadly applicable across domains while addressing their unique challenges.

Installation

The easiest way to install the package is via PyPi:

pip install causaldynamics

Although you can generate your own dataset (see getting started), you can download our preprocessed ones directly from HuggingFace:

wget https://huggingface.co/datasets/kausable/CausalDynamics/resolve/main/process_causaldynamics.py
python process_causaldynamics.py

See the additional installation guide for more options.

Getting Started

Benchmarking

Additional Installation Guide

Note: This is the recommended way if you want to run scripts to generate benchmark data. Clone the repository and install it using pdm:

git clone https://github.com/kausable/CausalDynamics.git
pdm install

You can test whether the installation succeded by creating some coupled causal model data:

python src/causaldynamics/creator.py --config config.yaml

You find the output at output/<timestamp> as default location.

Citation

If you find any of the code and dataset useful, feel free to acknowledge our work through:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

causaldynamics-0.1.0.tar.gz (93.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

causaldynamics-0.1.0-py3-none-any.whl (94.8 kB view details)

Uploaded Python 3

File details

Details for the file causaldynamics-0.1.0.tar.gz.

File metadata

  • Download URL: causaldynamics-0.1.0.tar.gz
  • Upload date:
  • Size: 93.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for causaldynamics-0.1.0.tar.gz
Algorithm Hash digest
SHA256 53b8be926366eba95487db4944c3178bf5c31c9c02dc8d95c0138fb4bebace11
MD5 1efa9f224ac014d0319e9f280d6524f9
BLAKE2b-256 7c323c35546ba83031829c76338356d95382009d272c6ca63fd760ffda44b084

See more details on using hashes here.

File details

Details for the file causaldynamics-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: causaldynamics-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 94.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for causaldynamics-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a34583fba17048fae932b03590b47d4302b1d76c7399156ef07c102820cba5fc
MD5 24bf9be2cd4e719d54057446dfdc11cc
BLAKE2b-256 e4519054fe6e969054c546873962cab30ea07d5fc3725ee1d9eb7b7105f2f839

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page