Skip to main content

Fairness-aware machine learning: algorithms, comparisons, benchmarking

Project description

This repository is meant to facilitate the benchmarking of fairness aware machine learning algorithms.

The associated paper is:

A comparative study of fairness-enhancing interventions in machine learning by Sorelle A. Friedler, Carlos Scheidegger, Suresh Venkatasubramanian, Sonam Choudhary, Evan P. Hamilton, and Derek Roth. https://arxiv.org/abs/1802.04422

To install this software run:

$ pip3 install fairness

The below instructions are still in the process of being updated to work with the new pip install-able version.

To run the benchmarks:

$ from fairness.benchmark import run
$ run()

This will write out metrics for each dataset to the results/ directory.

To generate graphs and other analysis run:

$ python3 analysis.py

If you do not yet have all the packages installed, you may need to run:

$ pip install -r requirements.txt

Optional: The benchmarks rely on preprocessed versions of the datasets that have been included in the repository. If you would like to regenerate this preprocessing, run the below command before running the benchmark script:

$ python3 preprocess.py

To add new datasets or algorithms, see the instructions in the readme files in those directories.

OS-specific things

On Ubuntu

(We tested on Ubuntu 16.04, your mileage may vary)

You'll need python3-dev:

$ sudo apt-get install python3-dev

Additional analysis-specific requirements

To regenerate figures (this is messy right now. we're working on it)

Python requirements (use pip):

  • ggplot

System requirements:

R package requirements (use install.packages):

  • rmarkdown
  • stringr
  • ggplot2
  • dplyr
  • magrittr
  • corrplot
  • robust

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

fairness-cscheid-0.1.6.tar.gz (12.9 MB view details)

Uploaded Source

Built Distribution

fairness_cscheid-0.1.6-py3-none-any.whl (14.2 MB view details)

Uploaded Python 3

File details

Details for the file fairness-cscheid-0.1.6.tar.gz.

File metadata

  • Download URL: fairness-cscheid-0.1.6.tar.gz
  • Upload date:
  • Size: 12.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for fairness-cscheid-0.1.6.tar.gz
Algorithm Hash digest
SHA256 514f4631eaf91009f743f3409e9ec32f52b203ca649452304fc288c45ab88dcf
MD5 a3d26cfa3479307bcb707c26a3411c83
BLAKE2b-256 9b03c6f113ce66b49a9825b3079ba716bb54fe940914daba644ce75e3901f9ea

See more details on using hashes here.

File details

Details for the file fairness_cscheid-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: fairness_cscheid-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 14.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for fairness_cscheid-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 eee87b58dc286380d8addd933795ea5f8365393652c39633577085b477fd73a5
MD5 250e0b37b1c2cbcd7f843d93096800bb
BLAKE2b-256 be2d2909189fe04ea3195ba833afaeb3e184a0ecdb3049713afcd35a3866fd53

See more details on using hashes here.

Supported by

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