Skip to main content

DEbiasing CAusal Fairness

Project description

DECAF (DEbiasing CAusal Fairness)

Tests License

Code Author: Trent Kyono

This repository contains the code used for the "DECAF: Generating Fair Synthetic Data Using Causally-Aware Generative Networks" paper(2021).

Installation

pip install -r requirements.txt
pip install .

Tests

You can run the tests using

pip install -r requirements_dev.txt
pip install .
pytest -vsx

Contents

  • decaf/DECAF.py - Synthetic data generator class - DECAF.
  • tests/run_example.py - Runs a nonlinear toy DAG example. The dag structure is stored in the dag_seed variable. The edge removal is stored in the bias_dict variable. See example usage in this file.

Examples

Base example on toy dag:

$ cd tests
$ python run_example.py

An example to run with a dataset size of 2000 for 300 epochs:

$ python run_example.py --datasize 2000 --epochs 300

Citing

@inproceedings{kyono2021decaf,
	title        = {DECAF: Generating Fair Synthetic Data Using Causally-Aware Generative Networks},
	author       = {Kyono, Trent and van Breugel, Boris and Berrevoets, Jeroen and van der Schaar, Mihaela},
	year         = 2021,
	booktitle    = {Conference on Neural Information Processing Systems(NeurIPS) 2021}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

schneiderkamplab_decaf-0.1.7.post1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

schneiderkamplab_decaf-0.1.7.post1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file schneiderkamplab_decaf-0.1.7.post1.tar.gz.

File metadata

File hashes

Hashes for schneiderkamplab_decaf-0.1.7.post1.tar.gz
Algorithm Hash digest
SHA256 7c6c5b4a7f22159a7e663e408578f18aacab32f4b6b2c3912059def6b59273df
MD5 ad44169c8c6b6a460caf59fff86bcab4
BLAKE2b-256 ab740f0a83699cb0a0db081c5117891c1a33c312108fc57868cf44273ac71eb6

See more details on using hashes here.

File details

Details for the file schneiderkamplab_decaf-0.1.7.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for schneiderkamplab_decaf-0.1.7.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fe94e1710025caebb3aefe0b85496040ea99546e0a0a3e843526b1114a287f5
MD5 b9ec47ed8c6763f227767e529a9a49d0
BLAKE2b-256 e7f83fbfd4cdf193093a04010a0865fb178deee499247d9e89c73359a7b23c0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page