Giter Site home page Giter Site logo

zhaozhiqian / single-cause-perturbation-neurips-2021 Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 1.06 MB

Code for Estimating Multi-cause Treatment Effects via Single-cause Perturbation (NeurIPS 2021)

License: MIT License

Jupyter Notebook 71.26% Shell 1.52% Python 27.22%

single-cause-perturbation-neurips-2021's Introduction

Estimating Multi-cause Treatment Effects via Single-cause Perturbation (NeurIPS 2021)

Single-cause Perturbation (SCP) is a framework to estimate the multi-cause conditional average treatment effect (CATE) from observational data.

Most existing CATE estimation methods are designed for single cause interventions, i.e. only one variable can be intervened on at one time. However, many applications involve simultaneous intervention on multiple variables. This is the multi-cause estimation problem addressed by SCP.

SCP leverages the connection between single and multi-cause interventions and overcomes the confounding bias via data augmentation. Compared with existing works, SCP does not make assumptions about the distributional or functional form of the DGP.

Usage

To run the code locally, make sure to first install the required python packages specified in requirements.txt. Python 3.6+ is recommended (the code has been tested with Python 3.7).

All the experiments scripts are located under experiments/. The reproduce_all.sh shell script contains commands to reproduce all synthetic data tables and figures in the paper. The reproduce_real.sh shell script contains commands to reproduce all real data tables and figures in the paper. The Fig[x].sh or Tab[x].sh shell script contain commands to generate results for individual figures or tables. The Fig[x].ipynb notebooks contain commands to create the visualizations.

An implementation of SCP is provided in the file run_simulation_scp.py. Note that SCP is a general framework agnostic to the exact choice of step one and step two estimators. In this implementation, we use DR-CFR in step one and neural network regression in step two. The benchmarks are implemented in the files benchmarks/run_simulation_[x].py.

Citation

If you find the software useful, please consider citing the following paper:

@inproceedings{scp2021,
  title={Estimating Multi-cause Treatment Effects via Single-cause Perturbation},
  author={Qian, Zhaozhi and Curth, Alicia and van der Schaar, Mihaela},
  booktitle={Advances in neural information processing systems},
  year={2021}
}

License

Copyright 2021, Zhaozhi Qian.

This software is released under the MIT license.

single-cause-perturbation-neurips-2021's People

Contributors

drshushen avatar zhaozhiqian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vanderschaarlab

single-cause-perturbation-neurips-2021's Issues

Inconsistentence between code and simulation.

Dear Zhiqian,

Thank you so much for presenting this nice paper.

However, I noticed that there may exist some name inconsistence between the code and simulation. For example, for Figure 3, you mentioned that 8 methods were included in the benchmark, including NN, NN-IPW, OP, DEC, VSR, SCP, CFR and DR-CFR. However, I could not find related name in the code (run_one_simulation.sh). In this file, there were eight methods, dor, scp, propensity, tarnet, vsr, drcrn, bmc overlap. Would you mind sharing some hints that which refers to which here?

Thank you!

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.