Skip to main content

DECAF (DEbiasing CAusal Fairness)

Tests License

Code Author: Trent Kyono and Boris van Breugel

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       = {van Breugel, Boris and Kyono, Trent and Berrevoets, Jeroen and van der Schaar, Mihaela},
	year         = 2021,
	booktitle    = {Conference on Neural Information Processing Systems(NeurIPS) 2021}
}

Metadata

Release files for decaf-synthetic-data 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for decaf-synthetic-data 0.1.7
File Interpreter ABI Platform
decaf_synthetic_data-0.1.7-py3-none-macosx_10_14_x86_64.whl Python 3 none macOS 10.14+ x86-64 Details
decaf_synthetic_data-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / decaf_synthetic_data-0.1.7-py3-none-macosx_10_14_x86_64.whl

Download URL decaf_synthetic_data-0.1.7-py3-none-macosx_10_14_x86_64.whl
Size 9.2 kB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
a31e70fa160a36c1fba8ced6f297fc430fd0a4bfd39ef946a3d33fdbdf4facb3
BLAKE2b-256 checksum
How to use checksums
2eb01bce327de2de493aa75b258f82b6ce2a07cc25b0f5e97a1eeee01552b279
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / decaf_synthetic_data-0.1.7-py3-none-any.whl

Download URL decaf_synthetic_data-0.1.7-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3433f810c12ffa5b6554b5c60ffe1ac456e7a99a1447aab69e9964f238ac0da5
BLAKE2b-256 checksum
How to use checksums
ae70f6f6217dc9c238ff0acd00db3d7f25ee68f9185cae45b6227e29bd63fe59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page