Context:
The Measurement Module unifies fairness measurement across ML workflows, providing a defensible, reproducible, and extensible layer for evaluating fairness metrics.
It standardizes how statistical validation and reporting are handled across multiple teams, libraries, and pipelines.
FairnessAnalyzer class, located in the measurement module.native (built-in reference implementation)FairlearnAdapterAequitasAdapterdemographic_parity_differenceequalized_odds_differencemae_parity_differencemin_group_size filtering to ensure statistical reliability.bootstrap_ci, bca_ci) and Bayesian small-n corrections (beta_binomial_interval).risk_ratio, cohen_d) for practical interpretability.{
"metric": "equalized_odds_difference",
"value": 0.12,
"ci": [0.09, 0.17],
"effect_size": 1.42,
"n_per_group": {"A": 120, "B": 100}
}
assert_fairness() for automated threshold checks within CI/CD pipelines.fairpipe validate): Enables one-command validation using a CSV input.metric → CI → MLflow → report.✅ Accepted (v0.1.0) — Measurement Module released and validated through demo and CI integration.
fairpipe Shim NamespaceDate: 2026-05-07
The project is published to PyPI under the name fairpipe, but the internal Python package was
named fairness_pipeline_dev_toolkit. This mismatch meant that pip install fairpipe succeeded
but import fairpipe raised ModuleNotFoundError, forcing users to discover and use the internal
package name. This violated the principle of least surprise and created friction in onboarding,
documentation, and third-party integrations.
A fairpipe/ top-level shim package was added to the repository. Each submodule is a thin
re-export that imports all public symbols from the corresponding fairness_pipeline_dev_toolkit
submodule using from fairness_pipeline_dev_toolkit.X import * and forwards __all__. Object
identity is fully preserved — no wrappers, no copies.
The shim covers all public submodules: metrics, pipeline, training, monitoring,
integration, and exceptions. The package-level __version__ is re-exported from
fairness_pipeline_dev_toolkit.__version__.
import fairpipe or from fairpipe.metrics import FairnessAnalyzer as
naturally as expected from the PyPI package name.fairness_pipeline_dev_toolkit.* continues to work without any changes
(full backward compatibility).✅ Accepted (v0.6.5) — fairpipe shim namespace shipped, tested (4 namespace parity tests), and documented.