Giter Site home page Giter Site logo

ganite-toymodel-data's Introduction

Codebase for "GANITE"

Authors: Jinsung Yoon, James Jordon, Mihaela van der Schaar

Reference: Jinsung Yoon, James Jordon, Mihaela van der Schaar, "GANITE: Estimation of Individualized Treatment Effects using Generative Adversarial Nets", International Conference on Learning Representations (ICLR), 2018.

Paper link: https://openreview.net/forum?id=ByKWUeWA-

Contact: [email protected]

This directory contains implementations of GANITE framework for individualized treatment effect estimations using a real-world dataset.

To run the pipeline for training and evaluation on GANITE framwork, simply run python3 -m main_ganite.py.

Code explanation

(1) data_loading.py

  • Transform raw twins data to preprocessed ITE data (X, T, Y, Potential Y)

(2) metrics.py (a) PEHE

  • Precision in Estimation of Heterogeneous Effect (b) ATE
  • Average Treatment Effect

(3) ganite.py

  • Use observed features, treatments and factual outcomes to estimate the potential outcomes

(4) main_ganite.py

  • Report PEHE and ATI for the twin dataset with GANITE

(5) utils.py

  • Some utility functions for GANITE.

Command inputs:

  • data_name: twin
  • train_rate: the ratio of training data
  • h_dim: hidden dimensions
  • iterations: number of training iterations
  • batch_size: the number of samples in each batch
  • alpha: hyper-parameter to adjust the loss importance

Note that network parameters should be optimized.

Example command

$ python3 main_ganite.py --data_name twin --train_rate 0.8 
--h_dim 30 --iteration 10000 --batch_size 256 --alpha 1 

Outputs

  • test_y_hat: estimated potential outcomes
  • metric_results: PEHE and ATE

ganite-toymodel-data's People

Contributors

shreeja7sheth avatar

Watchers

 avatar  avatar

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.