DECAF (DEbiasing CAusal Fairness)
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 thedag_seedvariable. The edge removal is stored in thebias_dictvariable. 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}
}
Metadata
Release files for schneiderkamplab-decaf 0.1.7.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| schneiderkamplab_decaf-0.1.7.post1.tar.gz | 10.7 kB | Without provenance | Details for schneiderkamplab_decaf-0.1.7.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| schneiderkamplab_decaf-0.1.7.post1-py3-none-any.whl | Python 3 | none | any | Details for schneiderkamplab_decaf-0.1.7.post1-py3-none-any.whl |
Total release size: 20.0 kB
Release files / schneiderkamplab_decaf-0.1.7.post1.tar.gz
| Download URL | schneiderkamplab_decaf-0.1.7.post1.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c6c5b4a7f22159a7e663e408578f18aacab32f4b6b2c3912059def6b59273df
|
|
BLAKE2b-256 checksum How to use checksums |
ab740f0a83699cb0a0db081c5117891c1a33c312108fc57868cf44273ac71eb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / schneiderkamplab_decaf-0.1.7.post1-py3-none-any.whl
| Download URL | schneiderkamplab_decaf-0.1.7.post1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0fe94e1710025caebb3aefe0b85496040ea99546e0a0a3e843526b1114a287f5
|
|
BLAKE2b-256 checksum How to use checksums |
e7f83fbfd4cdf193093a04010a0865fb178deee499247d9e89c73359a7b23c0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for schneiderkamplab-decaf 0.1.7.post1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.