decaf-synthetic-data-0.1.6
توضیحات
DEbiasing CAusal Fairness
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | decaf-synthetic-data-0.1.6 |
| نام | decaf-synthetic-data |
| نسخه کتابخانه | 0.1.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Trent Kyono |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/trentkyono/DECAF |
| آدرس اینترنتی | https://pypi.org/project/decaf-synthetic-data/ |
| مجوز | BSD-3-Clause |
# DECAF (DEbiasing CAusal Fairness)
[](https://github.com/vanderschaarlab/DECAF/actions/workflows/test_decaf.yml)
[](https://github.com/vanderschaarlab/DECAF/blob/main/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
```bash
pip install -r requirements.txt
pip install .
```
## Tests
You can run the tests using
```bash
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:
```bash
$ cd tests
$ python run_example.py
```
An example to run with a dataset size of 2000 for 300 epochs:
```bash
$ 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}
}
نیازمندی
| مقدار | نام |
|---|---|
| - | loguru |
| <3.0,>=2.0 | networkx |
| >=1.19 | numpy |
| - | pandas |
| <2.0 | pytorch-lightning |
| - | scikit-learn |
| - | scipy |
| >=1.9 | torch |
| >=0.10 | torchtext |
| - | xgboost |
نحوه نصب
نصب پکیج whl decaf-synthetic-data-0.1.6:
pip install decaf-synthetic-data-0.1.6.whl
نصب پکیج tar.gz decaf-synthetic-data-0.1.6:
pip install decaf-synthetic-data-0.1.6.tar.gz