All Projects → cosmicBboy → themis-ml

cosmicBboy / themis-ml

Licence: MIT License
A library that implements fairness-aware machine learning algorithms

Programming Languages

Jupyter Notebook
11667 projects
TeX
3793 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to themis-ml

interpretable-ml
Techniques & resources for training interpretable ML models, explaining ML models, and debugging ML models.
Stars: ✭ 17 (-81.72%)
Mutual labels:  transparency, fairness, accountability
FairAI
This is a collection of papers and other resources related to fairness.
Stars: ✭ 55 (-40.86%)
Mutual labels:  fairness, discrimination, ethics
Awesome Machine Learning Interpretability
A curated list of awesome machine learning interpretability resources.
Stars: ✭ 2,404 (+2484.95%)
Mutual labels:  transparency, fairness, accountability
Awesome Humane Tech
Promoting Solutions that Improve Wellbeing, Freedom and Society
Stars: ✭ 2,234 (+2302.15%)
Mutual labels:  transparency, ethics
fabrica-collaborative-editing
Plugin to make WordPress more Wiki-like by allowing more than one person to edit the same Post, Page, or Custom Post Type at the same time. When there are conflicting edits, it helps users to view, compare, and merge changes before saving.
Stars: ✭ 19 (-79.57%)
Mutual labels:  transparency, accountability
Upside-Down-Reinforcement-Learning
Upside-Down Reinforcement Learning (⅂ꓤ) implementation in PyTorch. Based on the paper published by Jürgen Schmidhuber.
Stars: ✭ 64 (-31.18%)
Mutual labels:  machine-learning-algorithms
influence boosting
Supporting code for the paper "Finding Influential Training Samples for Gradient Boosted Decision Trees"
Stars: ✭ 57 (-38.71%)
Mutual labels:  machine-learning-algorithms
NoML
A notebook for machine learning interview
Stars: ✭ 54 (-41.94%)
Mutual labels:  machine-learning-algorithms
taller SparkR
Taller SparkR para las Jornadas de Usuarios de R
Stars: ✭ 12 (-87.1%)
Mutual labels:  machine-learning-algorithms
SWBlog
machine learning practitioner, android and python
Stars: ✭ 33 (-64.52%)
Mutual labels:  machine-learning-algorithms
security-certification-resources
Android Certification Tools
Stars: ✭ 57 (-38.71%)
Mutual labels:  transparency
Data-Scientist-In-Python
This repository contains notes and projects of Data scientist track from dataquest course work.
Stars: ✭ 23 (-75.27%)
Mutual labels:  machine-learning-algorithms
bias-in-credit-models
Examples of unfairness detection for a classification-based credit model
Stars: ✭ 18 (-80.65%)
Mutual labels:  fairness
Python-TensorFlow-WebApp
Emerging Technologies Project - 4th Year 2017
Stars: ✭ 16 (-82.8%)
Mutual labels:  machine-learning-algorithms
Machine-Learning
A repo to explain algorithm in machine learning with CHINESE
Stars: ✭ 24 (-74.19%)
Mutual labels:  machine-learning-algorithms
ML-ProjectKart
🙌Kart of 210+ projects based on machine learning, deep learning, computer vision, natural language processing and all. Show your support by ✨ this repository.
Stars: ✭ 162 (+74.19%)
Mutual labels:  machine-learning-algorithms
Fake-News-Detection-Project
Fake News Detection Final Year College Project with Project Report, PPT, Code, Research Paper and Documents.
Stars: ✭ 16 (-82.8%)
Mutual labels:  machine-learning-algorithms
genie
Genie: A Fast and Robust Hierarchical Clustering Algorithm (this R package has now been superseded by genieclust)
Stars: ✭ 21 (-77.42%)
Mutual labels:  machine-learning-algorithms
oxygenjs
This a JavaScript Library for the Numerical Javascript and Machine Learning
Stars: ✭ 13 (-86.02%)
Mutual labels:  machine-learning-algorithms
spark-transformers
Spark-Transformers: Library for exporting Apache Spark MLLIB models to use them in any Java application with no other dependencies.
Stars: ✭ 39 (-58.06%)
Mutual labels:  machine-learning-algorithms

Themis ML

Build Status Documentation Status Gitter

themis-ml is a Python library built on top of pandas and sklearnthat implements fairness-aware machine learning algorithms.

Fairness-aware Machine Learning

themis-ml defines discrimination as the preference (bias) for or against a set of social groups that result in the unfair treatment of its members with respect to some outcome.

It defines fairness as the inverse of discrimination, and in the context of a machine learning algorithm, this is measured by the degree to which the algorithm's predictions favor one social group over another in relation to an outcome that holds socioeconomic, political, or legal importance, e.g. the denial/approval of a loan application.

A "fair" algorithm depends on how we define fairness. For example if we define fairness as statistical parity, a fair algorithm is one in which the proportion of approved loans among minorities is equal to the proportion of approved loans among white people.

Features

Here are a few of the discrimination discovery and fairness-aware techniques that this library implements.

Measuring Discrimination

  • Mean difference
  • Normalized mean difference
  • Consistency
  • Situation Test Score

Mitigating Discrimination

Preprocessing

  • Relabelling (Massaging)
  • Reweighting
  • Sampling

Model Estimation

  • Additive Counterfactually Fair Estimator
  • Prejudice Remover Regularized Estimator

Postprocessing

  • Reject Option Classification
  • Discrimination-aware Ensemble Classification

Datasets

themis-ml also provides utility functions for loading freely available datasets from a variety of sources.

Installation

The source code is currently hosted on GitHub: https://github.com/cosmicBboy/themis-ml. You can install the latest released version with conda or pip.

# conda
conda install -c cosmicbboy themis-ml

If you install with pip, you'll need to install scikit-learn, numpy, and pandas with either pip or conda. Version requirements:

  • numpy (>= 1.9.0)
  • scikit-learn (>= 0.19.1)
  • pandas (>= 0.22.0)
# pip
pip install themis-ml

Documentation

Official documentation for this package can be found here

References

You can find a complete set of references for the discrimination discovery and fairness-aware methods implemented in themis-ml in this paper.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].