Git Product home page Git Product logo

cgnf's Introduction

c-GNF : Causal-Graphical Normalizing Flows for Causal Effect Identification and Personalized Treatment/Public-Policy Analysis using Counterfactual Inference, i.e., First Law of Causal Inference.

Original PyTorch implementation of Causal-Graphical Normalizing Flows demonstrating the use of c-GNF on simulated datasets.

The implementation of c-GNF is done by extending the offical codes for the paper: Graphical Normalizing Flows, Antoine Wehenkel and Gilles Louppe. (May 2020). [arxiv] [github]

To Cite :

Balgi, S., Peña, J. M., & Daoud, A. (2022). Personalized Public Policy Analysis in Social Sciences Using Causal-Graphical Normalizing Flows. Proceedings of the AAAI Conference on Artificial Intelligence, 36(11), 11810-11818. [paper]

Dependencies

The list of dependencies can be found in requirements.txt text file and installed with the following command:

pip install -r requirements.txt

Code architecture

This repository provides some code to build diverse types normalizing flow models in PyTorch. The core components are located in the models folder. The different flow models are described in the file NormalizingFlow.py and they all follow the structure of the parent class NormalizingFlow. A flow step is usually designed as a combination of a normalizer (such as the ones described in Normalizers sub-folder) with a conditioner (such as the ones described in Conditioners sub-folder). Following the code hierarchy provided makes the implementation of new conditioners, normalizers or even complete flow architecture very easy.

Setting 1 : No data heterogeneity and no model misspecification

Refer cGNF_Wodtke_simulated_experiments_s1.ipynb jupyter notebook for further details on simulated experiments with no model misspecification and no data heterogeneity setting !!

Setting 2 : Data heterogeneity and only outcome model misspecification

Refer cGNF_Wodtke_simulated_experiments_s2.ipynb jupyter notebook for further details on simulated experiments with only outcome model misspecification and data heterogeneity setting !!

Setting 3 : Data heterogeneity and both treatment as well as outcome model misspecification

Refer cGNF_Wodtke_simulated_experiments_s3.ipynb jupyter notebook for further details on simulated experiments with both treatment and outcome model misspecification and data heterogeneity setting !!

cgnf's People

Contributors

sobalgi avatar

Stargazers

specialized boy avatar

Watchers

 avatar

Forkers

syyunn

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.