Giter VIP home page Giter VIP logo

nice's Introduction

Invariant Representation Learning for Treatment Effect Estimation

Introduction

This repository contains software and data for Invariant Representation Learning for Treatment Effect Estimation.

This paper develops nearly invariant causal estimation (NICE), an estimation procedure for causal inference from observational data where the data comes from multiple datasets. The datasets are drawn from distinct environments, corresponding to distinct distributions. Each environment has the same causal mechanism for the outcome, but the distributions are different in other ways. Using invariant risk minimization, NICE takes advantage of the differences and similarities across the datasets to estimate the causal effect.

Requirements and setup

see src/package-list.txt

Reproducing results

  1. Experiment 1 (src/experiment_synthetic)
  • To reproduce all the plots in experiment 1, run main.ipynb
  1. Experiment 2 (src/SpeedDating)
  • To reproduce the tables for experiment 2.

  • First, simulate data according to generate_simSpeedDate.R.

  • Then, run ./run_script/run_local.

  • Last, Make tables by running speed_tables.ipynb.

  1. Experiment 3 (src/finite_sample)
  • To reproduce the plots for experiment 3.

  • First, simulate data by running gen_dat.py

  • Then, run ./run_script/run_local if using cpu, ./run_script/run_gpu if using gpu.(Make sure you specify where to store the data/result)

  • Last, make plots by running plot.ipynb

Sample data and sample results are stored in dat/ and res/. If you have any questions, feel free to contact [email protected]

nice's People

Contributors

claudiashi57 avatar flora-jia-jfr 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.