Skip to main content

Targeted causal reduction learns high-level causes for phenomena occuring in simulations.

Project description

Targeted Causal Reduction (TCR)

PyTorch Lightning Code style: black license: MIT arXiv

TCR

Overview

TCR is a method for explaining a phenomenon (called target) in high-dimensional simulations (low-level model) by learning a low-dimensional causal model (high-level model) that captures the most important causes of the target. It uses shift interventions in the low-level model and its effects on the target to learn the high-level model. The full mathematical details are explained in the associated paper.

Installation

Clone the repository

git clone git@github.com:akekic/targeted-causal-reduction.git

and install the package

pip install .

If you want to install the package for development, use

pip install -e .[dev]

this will install the package in editable mode and install the additional dependencies for development.

Hello World!

The package provides an entry point for running the TCR algorithm. To run the algorithm on a synthetic linear low-level causal model, use

tcr

This will run the TCR algorithm and save the results as weights and biases logs in the wandb directory. The full list of arguments can be found by running

tcr --help

or by looking at the argument parser in targeted_causal_reduction/parser.py.

License

This project is licensed under the MIT license. See the LICENSE file for details.

Citation

If you use TCR, please cite the corresponding paper as follows.

Kekić, A., Schölkopf, B., & Besserve, M. (2024). Targeted Reduction of Causal Models. Conference on Uncertainty in Artificial Intelligence (UAI).

Bibtex

@article{
    kekic2024targeted,
    title={Targeted Reduction of Causal Models},
    author={Keki\'c, Armin and Sch\"olkopf, Bernhard and Besserve, Michel},
    journal={Conference on Uncertainty in Artificial Intelligence (UAI)},
    year={2024},
}

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

targeted_causal_reduction-0.0.1a1.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

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

targeted_causal_reduction-0.0.1a1-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

Details for the file targeted_causal_reduction-0.0.1a1.tar.gz.

File metadata

File hashes

Hashes for targeted_causal_reduction-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 068acf3953dfbf1b7e44b73ffe17c2a412766137998425b4c9ad3f6a12e50923
MD5 34d670b7efcf6bae6327c300d9354e3c
BLAKE2b-256 69f8b8ca0e7c163b4b7ac734c3516caa43917858ebb55bf0eff7525477941475

See more details on using hashes here.

File details

Details for the file targeted_causal_reduction-0.0.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for targeted_causal_reduction-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d34b2211e0768d2e777b2aba55af2f3d2209ad81a6d561b1606b06a9518a2fe
MD5 757f88d2467b199edfa9fc4011334e15
BLAKE2b-256 feabe380ac36f5377defe8d9f673af4371ba0dca901dbbb5b40f05b396bd6978

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