GithubHelp home page GithubHelp logo

bossemel / flow_pc Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.64 MB

Flow-based PC algorithm for causal discovery using Normalizing Flows

License: MIT License

Python 99.31% Shell 0.69%
causal-discovery deep-learning normalizing-flows copulas mutual-information conditional-independence

flow_pc's Introduction

Flow-PC

A deep-learning based PC algorithm for causal discovery. The conditional independence test is based on conditional mutual information which is in turn estimated by conditional copula density. The conditional copula density is measured using Normalizing Flows for both the marginal and the copula. Implementation based on Implementation of Machine Learning for Causal Discovery with Applications in Economics.

This repository is research code so use with caution :).

Installation

For installation, first create a virtual environment and install the required packages:

python3 -m venv .env
source .env/bin/activate
pip3 install -r requirements.txt
pip3 install -e .

Experiments

To run the experiments on the copula flow, the marginal flow and PC algorithm with toy data, run:

bash scripts/simulation_experiments.sh

Application

Download the eBay negotation data at a thread level from NBER and save it under datasets/ebay_data/. Then, run:

bash scripts/application_experiments.sh

License

Usage of the package is allowed under the MIT license, which can be found in license.txt.

flow_pc's People

Contributors

bossemel avatar

Stargazers

 avatar

Watchers

 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.