Giter VIP home page Giter VIP logo

causal_effect_estimation_using_nade's Introduction

Estimating causal effects using neural autoregressive density estimators

This repository contains the code for the paper "Estimating causal effects using neural autoregressive density estimators". The repository is composed of 11 scripts:

  • ./data/fake_data.py
  • ./experiments/default_experiment_yaml.py
  • ./bootstrap.py
  • ./hyperparameter_search.py
  • ./main.py
  • ./src/models/causal_estimates.py
  • ./src/models/data_loader.py
  • ./src/models/model.py
  • ./src/models/train.py
  • ./src/utils/plot_utils.py
  • ./src/utils/utils.py

In order to run the experiments, we need to generate the data and run a command line tool. The process is the following:

Generate fake data

To generate fake data, run in the command line: python3 ./data/fake_data.py n path Where n is the number of samples you want to generate and path is the folder where you want to save the fake data.

Run the experiments

In order to run an experiment, you need a YAML file with the parameters. In the "experiments" folder you can find a tool to create a default parameters YAML. In order to run that script, run in the command line python3 ./experiments/default_experiment_yaml.py dir where dir is the directory where you want to save the parameters YAML.

Having the data, and the YAML parameters file, we can run an experiment by running python3 main.py data_dir yaml_dir. The results will be recorded in the "results" directory. You can also perform a hyper-parameter search with: python3 hyper_parameter.py data_dir yaml_dir, or a bootstrap estimate of a particular model with: python3 bootstrap.py data_dir yaml_dir.

Reference

In order to cite this code or the paper, use the following bib:

@article{garrido2020estimating,
  title={Estimating Causal Effects with the Neural Autoregressive Density Estimator},
  author={Garrido, Sergio and Borysov, Stanislav S and Rich, Jeppe and Pereira, Francisco C},
  journal={arXiv preprint arXiv:2008.07283},
  year={2020}
}

causal_effect_estimation_using_nade's People

Contributors

chechgm avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

causal_effect_estimation_using_nade's Issues

Error of Run

hello, when I was running this project, it always informed me that the machine can't find the file training_logger.log. Coule you offer me the file?

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.