AIF360 GitHub Details, Stars and Alternatives | OpenRepoFinder
Trusted-AI / repository
AIF360
A comprehensive set of fairness metrics for datasets and machine learning models, explanations for these metrics, and algorithms to mitigate bias in datasets and models.
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
100
Community adoption25% weight
70
Maintenance state20% weight
65
License clarity10% weight
100
Project information10% weight
100
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
AI Fairness 360 (AIF360)
The AI Fairness 360 toolkit is an extensible open-source library containing techniques developed by the
research community to help detect and mitigate bias in machine learning models throughout the AI application lifecycle. AI Fairness 360 package is available in both Python and R.
The AI Fairness 360 package includes
a comprehensive set of metrics for datasets and models to test for biases,
explanations for these metrics, and
algorithms to mitigate bias in datasets and models.
It is designed to translate algorithmic research from the lab into the actual practice of domains as wide-ranging
as finance, human capital management, healthcare, and education. We invite you to use it and improve it.
Being a comprehensive set of capabilities, it may be confusing to figure out
which metrics and algorithms are most appropriate for a given use case. To
help, we have created some guidance
material that can be
consulted.
We have developed the package with extensibility in mind. This library is still
in development. We encourage the contribution of your metrics, explainers, and
debiasing algorithms.
This repository is a curated collection of resources, code, and projects focused on artificial intelligence (AI) development. Dive into deep learning, machine learning, computer vision, and Python development with our comprehensive set of tools
The AI Toolbox is a powerful Python-based toolkit designed to leverage artificial intelligence techniques for graph search algorithms and game playing. This versatile toolbox provides a comprehensive set of tools and functionalities to explore, analyze, and solve problems within the context of graph traversal and game playing scenarios.
For more details regarding the R setup, please refer to instructions here.
Python
Supported Python Configurations:
OS
Python version
macOS
3.10 – 3.13
Ubuntu
3.10 – 3.13
Windows
3.10 – 3.13
(Optional) Create a virtual environment
AIF360 requires specific versions of many Python packages which may conflict
with other projects on your system. A virtual environment manager is strongly
recommended to ensure dependencies may be installed safely. If you have trouble
installing AIF360, try this first.
Conda
Conda is recommended for all configurations though Virtualenv is generally
interchangeable for our purposes. Miniconda
is sufficient (see the difference between Anaconda and
Miniconda
if you are curious) if you do not already have conda installed.
Then, to create a new Python 3.11 environment, run:
The shell should now look like (aif360) $. To deactivate the environment, run:
(aif360)$ conda deactivate
The prompt will return to $ .
Install with pip
To install the latest stable version from PyPI, run:
pip install aif360
Note: Some algorithms require additional dependencies (although the metrics will
all work out-of-the-box). To install with certain algorithm dependencies
included, run, e.g.:
pip install 'aif360[LFR,OptimPreproc]'
or, for complete functionality, run:
pip install 'aif360[all]'
The options for available extras are: OptimPreproc, LFR, AdversarialDebiasing, DisparateImpactRemover, LIME, ART, Reductions, FairAdapt, inFairness, LawSchoolGPA, notebooks, tests, docs, all
If you'd like to run the examples, download the datasets now and place them in
their respective folders as described in
aif360/data/README.md.
Then, navigate to the root directory of the project and run:
pip install --editable '.[all]'
Run the Examples
To run the example notebooks, complete the manual installation steps above.
Then, if you did not use the [all] option, install the additional requirements
as follows:
pip install -e '.[notebooks]'
Finally, if you did not already, download the datasets as described in
aif360/data/README.md.
Troubleshooting
If you encounter any errors during the installation process, look for your
issue here and try the solutions.
CVXPY is only required for use with the
aif360.algorithms.preprocessing.OptimPreproc class.
Using AIF360
The examples directory contains a diverse collection of jupyter notebooks
that use AI Fairness 360 in various ways. Both tutorials and demos illustrate
working code using AIF360. Tutorials provide additional discussion that walks
the user through the various steps of the notebook. See the details about
tutorials and demos here
Citing AIF360
A technical description of AI Fairness 360 is available in this
paper. Below is the bibtex entry for this
paper.
@misc{aif360-oct-2018,
title = "{AI Fairness} 360: An Extensible Toolkit for Detecting, Understanding, and Mitigating Unwanted Algorithmic Bias",
author = {Rachel K. E. Bellamy and Kuntal Dey and Michael Hind and
Samuel C. Hoffman and Stephanie Houde and Kalapriya Kannan and
Pranay Lohia and Jacquelyn Martino and Sameep Mehta and
Aleksandra Mojsilovic and Seema Nagar and Karthikeyan Natesan Ramamurthy and
John Richards and Diptikalyan Saha and Prasanna Sattigeri and
Moninder Singh and Kush R. Varshney and Yunfeng Zhang},
month = oct,
year = {2018},
url = {https://arxiv.org/abs/1810.01943}
}
AIF360 Videos
Introductory video to AI
Fairness 360 by Kush Varshney, September 20, 2018 (32 mins)
Contributing
The development fork for Rich Subgroup Fairness (inprocessing/gerryfair_classifier.py) is here. Contributions are welcome and a list of potential contributions from the authors can be found here.