Code Monkey home page Code Monkey logo

networks-learning / counterfactual-continuous-mdp Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 88 KB

Code for "Finding Counterfactually Optimal Action Sequences in Continuous State Spaces", NeurIPS 2023.

Home Page: https://arxiv.org/abs/2306.03929

Jupyter Notebook 37.93% Shell 7.24% Python 54.82%
causality counterfactuals machine-learning explainable-ai explainable-ml markov-decision-processes decision-making decision-making-under-uncertainty

counterfactual-continuous-mdp's Introduction

Finding Counterfactually Optimal Action Sequences in Continuous State Spaces

This repository contains the code used in the paper "Finding Counterfactually Optimal Action Sequences in Continuous State Spaces", published at NeurIPS 2023.

Dependencies

All the experiments were performed using Python 3.9. In order to create a virtual environment and install the project dependencies you can run the following commands:

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

Code organization

The directory src contains the source code for the experiments.

The directory scripts contains bash scripts that use the aforementioned code and pass parameter values required for the various experiments.

  • build_datasets.sh is preprocessing the sepsis management data
  • build_scm.sh is used to train the final SCM
  • cv_scm.sh is used to evaluate the goodness of fit of the SCM via cross-validation, under different values of the networks' Lipschitz constants
  • grande_experiment_slurm.sh is the main script used to run experiments using a slurm scheduler and this is where each experiment's configuration is set
  • single_experiment_slurm.sh is a helper script called by grande_experiment_slurm.sh
  • solve_facility_location.sh is used to precompute anchor sets using the Facility-Location method

The directory notebooks contains jupyter notebooks producing the figures appearing in the paper. Each notebook reads output files generated by scripts. For details, see grande_experiment_slurm.sh and the description within each notebook.

The directory figures is used for saving the figures produced by the notebooks.

The directory outputs and its sub-directories are used for saving the outputs generated by the scripts.

Citation

If you use parts of the code in this repository for your own research, please consider citing:

@inproceedings{tsirtsis2023finding,
    title={Finding Counterfactually Optimal Action Sequences in Continuous State Spaces},
    author={Tsirtsis, Stratis and Gomez-Rodriguez, Manuel},
    booktitle={Advances in Neural Information Processing Systems (NeurIPS)},
    year={2023}
}

counterfactual-continuous-mdp's People

Contributors

manuelgr avatar stsirtsis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mpi-sws

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.