feat(governance): add regional bias audit framework for model fairness#30
Merged
feat(governance): add regional bias audit framework for model fairness#30
Conversation
1 task
- Add BiasAuditor class with demographic parity, equalized odds, and predictive parity metrics - Implement run_bias_audit() for evaluating model fairness across regions - Add check_fairness_gate() for CI/CD integration - Create scripts/audit_model.py CLI tool for running audits - Add notebooks/07_bias_audit.ipynb with visualization examples - Support Amazon, Congo, Southeast Asia, and Boreal forest regions Closes #23 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
8bfe292 to
61d464e
Compare
obielin
approved these changes
May 5, 2026
Collaborator
obielin
left a comment
There was a problem hiding this comment.
Thanks for picking this up while I was finishing the explainability work — the regional bias auditor with demographic-parity / equalized-odds support is exactly what the governance pipeline needs upstream of the CI gate I shipped in #39.
After the rebase the PR landed cleanly on top of my anomaly detector / audit logger / model card / LLM reporter — governance/__init__.py re-exports all of them coherently. The fairness gate function plugs straight into scripts/governance_ci_gate.py. Approving and happy to take ownership going forward.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BiasAuditorclass for evaluating model fairness across geographic regionsscripts/audit_model.pyCLI tool for running auditsnotebooks/07_bias_audit.ipynbwith visualization examplesKey Features
check_fairness_gate()returns True/False for pipeline gatingUsage
Test plan
python -c "from climatevision.governance import run_bias_audit; print('OK')"python scripts/audit_model.py --list-regionsnotebooks/07_bias_audit.ipynbcellsoutputs/bias_reports/Closes #23
🤖 Generated with Claude Code