Coder Social home page Coder Social logo

an-seunghwan / cdg-vae Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 13.57 MB

Official pytorch implementation codes for ECAI-2023 accepted paper "Causally Disentangled Generative Variational AutoEncoder"

License: MIT License

Python 100.00%
causal-structure variational-autoencoder causal-disentanglement causally-disentangled-generation

cdg-vae's Introduction

Causally Disentangled Generative Variational AutoEncoder

This repository is the official implementation of Causally Disentangled Generative Variational AutoEncoder (26th European Conference on Artificial Intelligence ECAI 2023 accepted paper) with pytorch.

NOTE: This repository supports WandB MLOps platform!

Appendix

See appendix.pdf for the appendix file for the main manuscript.

Training & Evaluation

1. How to Training & Evaluation

1. pendulum datset

training

  • training CDG-VAE
python main.py --model "CDGVAE"
  • training CDG-VAE in order to evaluate distributional robustness of downstream task
python DR/main.py --model "CDGVAE"

(Note) The file names with _semi means training CDG-VAE under semi-supervised learning setting.

evaluation

  • counterfactual image generation: inference.py
  • sample efficiency of downstream task: sample_efficiency.py
  • distributional robustness of downstream task: DR/robustness.py

2. tabular dataset

training

  • CDG-VAE
python tabular/main.py --model "CDGVAE"
  • CDG-TVAE
python tabular/main_tvae.py 

evaluation (SHD and synthetic data quality)

  • CDG-VAE: tabular/inference.py
  • CDG-TVAE: tabular/inference_tvae.py

Results

directory and codes

.
+-- assets 
+-- modules 
|       +-- datasets.py
|       +-- model.py
|       +-- pendulum_real.py
|       +-- pendulum.py
|       +-- simulation.py
|       +-- train.py
|       +-- viz.py

+-- main.py
+-- main_semi.py
+-- main_classifier.py
+-- inference.py
+-- metric.py
+-- sample_efficiency.py
+-- LICENSE
+-- README.md
+-- appendix.pdf

+-- DR (folder which contains source codes for distributional robustness experiments)
|   +-- assets 
|   +-- main.py
|   +-- main_semi.py
|   +-- robustness.py
|   +-- toy_DR.py

+-- tabular (folder which contains source codes for tabular dataset experiments)
|   +-- assets 
|   +-- modules
|       +-- adult_datasets.py
|       +-- covtype_datasets.py
|       +-- loan_datasets.py
|       +-- errors.py
|       +-- numerical.py
|       +-- transformer_base.py
|       +-- transformer_null.py
|       +-- data_transformer.py
|       +-- model.py
|       +-- train.py
|       +-- evaluation.py
|       +-- viz.py
|       +-- simulation.py
|   +-- dag_adult.py
|   +-- dag_covtype.py
|   +-- dag_loan.py
|   +-- main.py
|   +-- inference.py
|   +-- main_tvae.py
|   +-- inference_tvae.py

Citation

@inproceedings{An2023CDGVAE,
  author       = {SeungHwan An and
                  Kyungwoo Song and
                  Jong{-}June Jeon},
  title        = {Causally Disentangled Generative Variational AutoEncoder},
  booktitle    = {{ECAI} 2023 - 26th European Conference on Artificial Intelligence,
                  September 30 - October 4, 2023, Krak{\'{o}}w, Poland - Including
                  12th Conference on Prestigious Applications of Intelligent Systems
                  {(PAIS} 2023)},
  series       = {Frontiers in Artificial Intelligence and Applications},
  volume       = {372},
  pages        = {93--100},
  publisher    = {{IOS} Press},
  year         = {2023},
  url          = {https://doi.org/10.3233/FAIA230258},
  doi          = {10.3233/FAIA230258},
}

cdg-vae's People

Contributors

an-seunghwan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zhucuihua

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.