Skip to main content

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

Release files for fairness-cscheid 0.1.7

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

Source distribution (sdist)

Source distribution for fairness-cscheid 0.1.7
File Size Uploaded
fairness-cscheid-0.1.7.tar.gz 12.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for fairness-cscheid 0.1.7
File Interpreter ABI Platform
fairness_cscheid-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 MB

Release files / fairness-cscheid-0.1.7.tar.gz

Download URL fairness-cscheid-0.1.7.tar.gz
Size 12.9 MB
Tags Source
SHA-256 checksum
How to use checksums
5f4939336cc0d5eabee4aa33da26554896ca1fdd2dadbc616a6405cc5f73346f
BLAKE2b-256 checksum
How to use checksums
b4d7b04d14cc99ed507142c86f05a8215cd3c0162351719a61ac9f54f8c768be
Upload date
Uploaded using Trusted Publishing?
What is 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

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

Download URL fairness_cscheid-0.1.7-py3-none-any.whl
Size 14.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bcebdb7cdbe9e091bf9137ebd4a7d96c48d8fab093b93316ddb75529295badbd
BLAKE2b-256 checksum
How to use checksums
4ef0beecfc8c562397342a4db88efa6bbd169247e051bf8aa44d76490cce3a12
Upload date
Uploaded using Trusted Publishing?
What is 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

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

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