Algorithms for mitigating unfairness in supervised machine learning
Project description
Fairlearn
Fairlearn is a Python package that empowers developers of artificial intelligence (AI) systems to assess their system's fairness and mitigate any observed unfairness issues. Fairlearn contains mitigation algorithms as well as metrics for model assessment. Besides the source code, this repository also contains Jupyter notebooks with examples of Fairlearn usage.
Website: https://fairlearn.org/
- Current release
- What we mean by fairness
- Overview of Fairlearn
- Install Fairlearn
- Usage
- Contributing
- Maintainers
- Issues
Current release
-
The current stable release is available at Fairlearn v0.7.0.
-
Our current version may differ substantially from earlier versions. Users of earlier versions should visit our migration guide.
What we mean by fairness
An AI system can behave unfairly for a variety of reasons. In Fairlearn, we define whether an AI system is behaving unfairly in terms of its impact on people – i.e., in terms of harms. We focus on two kinds of harms:
-
Allocation harms. These harms can occur when AI systems extend or withhold opportunities, resources, or information. Some of the key applications are in hiring, school admissions, and lending.
-
Quality-of-service harms. Quality of service refers to whether a system works as well for one person as it does for another, even if no opportunities, resources, or information are extended or withheld.
We follow the approach known as group fairness, which asks: Which groups of individuals are at risk for experiencing harms? The relevant groups need to be specified by the data scientist and are application specific.
Group fairness is formalized by a set of constraints, which require that some aspect (or aspects) of the AI system's behavior be comparable across the groups. The Fairlearn package enables assessment and mitigation of unfairness under several common definitions. To learn more about our definitions of fairness, please visit our user guide on Fairness of AI Systems.
Note: Fairness is fundamentally a sociotechnical challenge. Many aspects of fairness, such as justice and due process, are not captured by quantitative fairness metrics. Furthermore, there are many quantitative fairness metrics which cannot all be satisfied simultaneously. Our goal is to enable humans to assess different mitigation strategies and then make trade-offs appropriate to their scenario.
Overview of Fairlearn
The Fairlearn Python package has two components:
-
Metrics for assessing which groups are negatively impacted by a model, and for comparing multiple models in terms of various fairness and accuracy metrics.
-
Algorithms for mitigating unfairness in a variety of AI tasks and along a variety of fairness definitions.
Fairlearn metrics
Check out our in-depth guide on the Fairlearn metrics.
Fairlearn algorithms
For an overview of our algorithms please refer to our website.
Install Fairlearn
For instructions on how to install Fairlearn check out our Quickstart guide.
Usage
For common usage refer to the Jupyter notebooks and our
user guide.
Please note that our APIs are subject to change, so notebooks downloaded
from main
may not be compatible with Fairlearn installed with pip
.
In this case, please navigate the tags in the repository
(e.g. v0.4.5)
to locate the appropriate version of the notebook.
Contributing
To contribute please check our contributor guide.
Maintainers
The Fairlearn project is maintained by:
- @adrinjalali
- @hildeweerts
- @MiroDudik
- @mmadaio
- @riedgar-ms
- @romanlutz
For a full list of contributors refer to the authors page
Issues
Usage Questions
Pose questions and help answer them on Stack
Overflow with the tag
fairlearn
or on Gitter.
Regular (non-security) issues
Issues are meant for bugs, feature requests, and documentation improvements. Please submit a report through GitHub issues. A maintainer will respond promptly as appropriate.
Maintainers will try to link duplicate issues when possible.
Reporting security issues
To report security issues please send an email to
fairlearn-internal@python.org
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fairlearn-0.7.0.tar.gz
.
File metadata
- Download URL: fairlearn-0.7.0.tar.gz
- Upload date:
- Size: 121.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0d287d34275b7b2ae29d084754e3eca3a47289f774c77229921b10c7c52127e |
|
MD5 | 941548f005fc16bfc50a8e2b7c08718a |
|
BLAKE2b-256 | 6d71ce6557e793134b7f1073c1acbe7fb6aeb9f599ebfae62832014c88b9d9f6 |
File details
Details for the file fairlearn-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: fairlearn-0.7.0-py3-none-any.whl
- Upload date:
- Size: 177.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac27e89952b5c5e3a3fdee05bfbadacfacc30fe00b917b057e2f605920ef5e44 |
|
MD5 | e0f3c3f4c9ded1b415ca83092aece363 |
|
BLAKE2b-256 | f92293697472801e44344b5f7c3653762c4a143774f62b2a8bf97e7e7b1f7afa |