Fairness Indicators
Project description
Fairness Indicators BETA
Fairness Indicators is designed to support teams in evaluating and improving models for fairness concerns in partnership with the broader Tensorflow toolkit.
The tool is currently actively used internally by many of our products, and is now available in BETA for you to try for your own use cases. We would love to partner with you to understand where Fairness Indicators is most useful, and where added functionality would be valuable. Please reach out at tfx@tensorflow.org. You can provide any feedback on your experience, and feature requests, here.
Key links
- Introductory Video
- Fairness Indicators Example Colab
- Fairness Indicators: Thinking about Fairness Evaluation
What is Fairness Indicators?
Fairness Indicators enables easy computation of commonly-identified fairness metrics for binary and multiclass classifiers.
Many existing tools for evaluating fairness concerns don’t work well on large scale datasets and models. At Google, it is important for us to have tools that can work on billion-user systems. Fairness Indicators will allow you to evaluate across any size of use case.
In particular, Fairness Indicators includes the ability to:
- Evaluate the distribution of datasets
- Evaluate model performance, sliced across defined groups of users
- Feel confident about your results with confidence intervals and evals at multiple thresholds
- Dive deep into individual slices to explore root causes and opportunities for improvement
This Introductory Video provides an example of how Fairness Indicators can be used on of our own products to evaluate fairness concerns overtime. This Demo Colab provides a hands-on experience of using Fairness Indicators.
The pip package download includes:
- Tensorflow Data Analysis (TFDV) [analyze distribution of your dataset]
- Tensorflow Model Analysis (TFMA) [analyze model performance]
- Fairness Indicators [an addition to TFMA that adds fairness metrics and the ability to easily compare performance across slices]
- The What-If Tool (WIT) [an interactive visual interface designed to probe your models better]
How can I use Fairness Indicators?
Tensorflow Models
- Access Fairness Indicators as part of the Evaluator component in Tensorflow Extended [docs]
- Access Fairness Indicators in Tensorboard when evaluating other real-time metrics [docs]
Not using existing Tensorflow tools? No worries!
- Download the Fairness Indicators pip package, and use Tensorflow Model Analysis as a standalone tool [docs]
Non-Tensorflow Models
- Model Agnostic TFMA enables you to compute Fairness Indicators based on the output of any model [docs]
Examples
The examples directory contains several examples.
- Fairness_Indicators_Example_Colab.ipynb gives an overview of Fairness Indicators in TensorFlow Model Analysis and how to use it with a real dataset. This notebook also goes over TensorFlow Data Validation and What-If Tool, two tools for analyzing TensorFlow models that are packaged with Fairness Indicators.
- Fairness_Indicators_on_TF_Hub.ipynb demonstrates how to use Fairness Indicators to compare models trained on different text embeddings. This notebook uses text embeddings from TensorFlow Hub, TensorFlow's library to publish, discover, and reuse model components.
- Fairness_Indicators_TensorBoard_Plugin_Example_Colab.ipynb demonstrates how to visualize Fairness Indicators in TensorBoard.
More questions?
For more information on how to think about fairness evaluation in the context of your use case, see this link.
If you have found a bug in Fairness Indicators, please file a GitHub issue with as much supporting information as you can provide.
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 Distributions
Hashes for fairness_indicators-0.1.0.dev5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71f26dc4e8dfb97951a646cb9a0880f72a01c3b0a01a26a4f6166a43e4c77046 |
|
MD5 | 3ea5e17a7026bce9328d34924c603e6b |
|
BLAKE2b-256 | 333664d8eaf7f184a52d815ef101321acdea359741b80ddb882533bbfe218de6 |
Hashes for fairness_indicators-0.1.0.dev5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7b51c4802583eec418110ee33977480cf29c46e495b4e1aaace5b71b70b04d |
|
MD5 | fe6999ea7ee141ba4e1d8f540f7b401c |
|
BLAKE2b-256 | 96abd7fd36f02513f92a5cfe7694711d7a4b448dfe50121ebfbc7657dda201d6 |
Hashes for fairness_indicators-0.1.0.dev5-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42dc3473d7da2297a6d2df1e91e992e92f349e6ea69eb5311facb54c139baeda |
|
MD5 | f5d9c03fe3c935316ab12d56ed6d4111 |
|
BLAKE2b-256 | 760dc761c390c34428fbd3882c15f8605e0d6b4ff52f54fcac6e2e6265ae2f2f |