Welcome to the EquiBoots Documentation!
Note
This documentation is for equiboots version 0.0.0a13.
EquiBoots is a fairness-aware model evaluation toolkit for auditing performance disparities across demographic groups in machine learning models. It provides robust, bootstrapped evaluation metrics for binary, multi-class, and multi-label classification tasks, as well as regression models.
The library supports:
Group-wise performance slicing
Fairness diagnostics and disparity metrics
Confidence intervals via bootstrapping
Customizable and publication-ready visualizations
Statistical tests to assess performance differences
EquiBoots is suited for applications in clinical, social, and policy contexts: domains where transparency, bias mitigation, and equitable outcomes are essential for responsible AI/ML deployment.
Project Links
Prerequisites
Before you install equiboots, ensure your system meets the following requirements:
Python (version
3.7.4or higher)
Additionally, equiboots depends on the following packages, which will be automatically installed when you install equiboots:
matplotlib: version3.5.3or higher, but capped at3.10.1numpy: version1.21.6or higher, but capped at2.2.4pandas: version1.3.5or higher, but capped at2.2.3scikit-learn: version1.0.2or higher, but capped at1.5.2scipy: version1.8.0or higher, but capped at1.15.2seaborn: version0.11.2or higher, but capped at0.13.2statsmodels: version0.13or higher, but capped at0.14.4tqdm`: version4.66.4or higher, but capped below4.67.1
Installation
You can install equiboots directly from PyPI:
pip install equiboots
Description
This guide provides detailed instructions and examples for using the functions
provided in the equiboots library and how to use them effectively in your projects.
Table of Contents
Getting Started
Point Estimate Metrics
Bootstrap Estimate Metrics
Classes, Attributes, & Methods
- EquiBoots Class
EquiBootsEquiBoots.calculate_differences()EquiBoots.calculate_disparities()EquiBoots.calculate_groups_differences()EquiBoots.calculate_groups_disparities()EquiBoots.check_classification_task()EquiBoots.check_fairness_vars()EquiBoots.check_group_empty()EquiBoots.check_group_size()EquiBoots.check_task()EquiBoots.get_groups_metrics()EquiBoots.get_metrics()EquiBoots.list_adjustment_methods()EquiBoots.list_available_tests()EquiBoots.set_fix_seeds()EquiBoots.set_reference_groups()
- Overview
- Constructor
- Main Methods
- Non-Main/Internal Methods
- Example Usage
- Point Estimates Without Bootstrapping
- With Bootstrapping
- StatisticalTester
- Overview
- Classes
- Class Attributes
- Function Signatures
StatTestResultStatisticalTesterStatisticalTester._bootstrap_test()StatisticalTester.get_ci_bounds()StatisticalTester.calc_p_value_bootstrap()StatisticalTester._chi_square_test()StatisticalTester.get_contingency_table()StatisticalTester._calculate_effect_size()StatisticalTester._adjust_p_values()StatisticalTester.analyze_metrics()StatisticalTester.adjusting_p_vals()StatisticalTester._validate_config()StatisticalTester.cohens_d()StatisticalTester._analyze_single_metrics()StatisticalTester._analyze_bootstrapped_metrics()
- Usage Example
From Model to Prediction
Mathematical Framework
iPython Notebooks
About EquiBoots
- Acknowledgements
- Contributors
- Citing EquiBoots
- Changelog
- Version 0.0.1a13
- Version 0.0.1a12
- Version 0.0.1a11
- Version 0.0.1a10
- Version 0.0.1a9
- Version 0.0.1a8
- Version 0.0.1a7
- Version 0.0.1a6
- Version 0.0.1a5
- Version 0.0.1a4
- Version 0.0.1a3
- Version 0.0.1a2
- Version 0.0.1a1
- Version 0.0.1a
- Version 0.0.0a10
- Version 0.0.0a9
- What’s Changed
- Version 0.0.0a8
- Version 0.0.0a7
- Version 0.0.0a6
- Version 0.0.0a5
- Version 0.0.0a4
- Version 0.0.0a3
- Version 0.0.0a2
- Version 0.0.0a1
- References