Code Monkey home page Code Monkey logo

deep-counterfactual-networks-with-propensity-dropout's Introduction

Introduction:

This project is the implementation of the paper: "Deep Counterfactual Networks with Propensity-Dropout" [arXiv] in pytorch.
Ahmed M. Alaa, Michael Weisz, Mihaela van der Schaar

Dataset:

IHDP dataset will be found in the folder: "./Dataset"

Abstract

"We propose a novel approach for inferring the individualized causal effects of a treatment (intervention) from observational data. Our approach conceptualizes causal inference as a multitask learning problem; we model a subject's potential outcomes using a deep multitask network with a set of shared layers among the factual and counterfactual outcomes, and a set of outcome-specific layers. The impact of selection bias in the observational data is alleviated via a propensity-dropout regularization scheme, in which the network is thinned for every training example via a dropout probability that depends on the associated propensity score. The network is trained in alternating phases, where in each phase we use the training examples of one of the two potential outcomes (treated and control populations) to update the weights of the shared layers and the respective outcome-specific layers. Experiments conducted on data based on a real-world observational study show that our algorithm outperforms the state-of-the-art."

                                      • Ahmed M. Alaa • Michael Weisz • Mihaela van der Schaar

Architecture

Developer

Shantanu Ghosh

Dependencies

python 3.7.7

pytorch 1.3.1

How to run

To reproduce the experiments for IHDP dataset, first download the dataset as described above and then, type the following command:

python3 main_propensity_dropout.py

Hyperparameters:

  • Propensity Network
  • Epochs: 50
    Learning rate: 0.001
    Batch size: 32
  • DCN
  • Epochs: 100
    Learning rate: 0.0001

Contact

[email protected]
[email protected]

deep-counterfactual-networks-with-propensity-dropout's People

Contributors

shantanu-ai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.