Skip to content

alecmn/dragonnet-reproduced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dragonnet reproduced

This repository contains software and data reproducing the dragonnet implementation by "Shi et al." This is done through rewriting certain parts of their implementation with PyTorch. The paper that belongs to this repository is "Adapting Neural Networks for the Estimation of Treatment Effects". The paper describes the use of neural networks for the estimation of treatment effects from observational data.

Requirements and setup

You will need to install sklearn, numpy, pytorch and, pandas

Data

  1. IHDP
  • This dataset is based on a randomized experiment investigating the effect of home visits by specialists on future cognitive scores.
  • It is generated via the npci package.
  • We also uploaded a portion of the simulated data in the dat folder.
  1. ACIC

Reproducing the IHDP experiments

The workflow consists of two stages:

  1. Fitting a predictor:
  • You'll run the from src code as ./experiment/run_ihdp.sh

  • If you are using a cluster, there's some code that might be useful in the submission folder.

  • Before doing this, you'll need to edit run_ihdp.sh and change the following: data_base_dir= where you stored the data output_base_dir=wherer you want the result to be

  • The prediction should go into your output folder

  1. Estimation:
  • After you get the predictions, you want to fit them into estimators.
  • Run ihdp_ate.py to reproduce the table.
  1. Things to note when reproducing the result:
  • The default setting would let you run Dragonnet, and TARNET under both targeted regularization and default mode. If you want to run a subset of the models, delete them at the run_ihdp.sh

  • The default use all the data for training, prediction, and estimation. To change that, you could update the train_test_split function in the ihdp_main.py

Reproducing the ACIC experiment

  1. Fitting a predictor: Same as above except you run the from src code as ./experiment/run_acic.sh

  2. Estimation: Same as above except you run the from src code as acic_ate.py

Contact us

This repository is created by Alec Nonnemaker, Sara Boby and Fernando Corte Vargas. Feel free to email us if you have any questions: [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •