logo
  • About
  • Quickstart
  • User Guide
  • API Reference
  • Example Notebooks
  • Contributor Guide
  • FAQ

Versions

  • v0.4.6: N/A
  • v0.5.0: N/A
  • v0.6.2
  • v0.7.0: N/A
  • main: N/A
  • GridSearch with Census Data
  • Metrics with Multiple Features
  • Making Derived Metrics
  • Selection rates in census dataset
  • GridSearch with Census Data
  • Making Derived Metrics
  • Metrics with Multiple Features

Example Notebooks¶

Here’s a list of examples on how to use the library. We will be adding more examples soon. If you’re interested in contributing to existing notebooks or adding new ones please consult the guide on Contributing example notebooks.

Note

The Fairlearn API is still evolving, so if you want to run these on your local Fairlearn installation, make sure to match versions.

  • GridSearch with Census Data
    • Load and preprocess the data set
    • Training a fairness-unaware predictor
    • Mitigation with GridSearch
  • Metrics with Multiple Features
    • Getting the Data
    • Analysing the Model with Metrics
    • Quantifying Disparities
    • Intersections of Features
    • Control Features
  • Making Derived Metrics
    • Getting the Data
    • Creating a derived metric
    • Pregenerated Metrics
Selection rates in census dataset

Selection rates in census dataset¶

GridSearch with Census Data

GridSearch with Census Data¶

Making Derived Metrics

Making Derived Metrics¶

Metrics with Multiple Features

Metrics with Multiple Features¶

Download all examples in Python source code: auto_examples_python.zip

Download all examples in Jupyter notebooks: auto_examples_jupyter.zip

Gallery generated by Sphinx-Gallery

© Copyright 2018 - 2022, Fairlearn contributors.

Created using Sphinx 4.2.0.