Git Product home page Git Product logo

uva_fact2022's Introduction

Replication Study of DECAF: Generating Fair Synthetic Data Using Causally-Aware Generative

This repository contains all code required to replicate our replication study of the paper NeurIPS 2021 DECAF: Generating Fair Synthetic Data Using Causally-Aware Generative networks. We built upon the (incomplete) code provided by the authors to repeat the first experiment which involves removing existing bias from real data with existing bias, and the second experiment where synthetically injected bias is added to real data and then removed.

The original code of DECAF paper is here

Prerequisites

Code is compatible with Python version 3.8.* due to explicit version requirements of some of the project dependencies.

We use DVC for storing trained models.

Installation

virtualenv env
source env/bin/activate
pip install -r requirements.txt

Downloading pretrained models

If you want to run the notebooks with pretrained models you need to download them first by running:

dvc pull

Contents

train.py - Training functions for different GAN models, including DECAF, Vanilla_GAN, WGAN_gp, FairGAN.

data.py - Loading data and preprocessing functions for Adult dataset and Credit dataset.

metrics.py - Measuring the Data Quality and Fairness.

experiment_1.ipynb, experiment_2.ipynb - A quick overview of reproduction results.

run_experiment_1.py, show_results.py - Scripts used for generating final results for Experiment 1.

uva_fact2022's People

Contributors

vshulev avatar shuaiwang97 avatar jennzhuge avatar

Stargazers

Lee Jong Bub avatar FANTOME avatar JasonSpano avatar  avatar

Watchers

 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.