Skip to content

Add household count target to ECPS calibration#1149

Merged
MaxGhenis merged 1 commit into
mainfrom
fix-ecps-household-weight-prior
May 27, 2026
Merged

Add household count target to ECPS calibration#1149
MaxGhenis merged 1 commit into
mainfrom
fix-ecps-household-weight-prior

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented May 27, 2026

Summary

  • add a source household-count target to legacy ECPS calibration so reweighting cannot scale total household mass upward
  • weight the household-count target like other hard national controls and require it before EnhancedCPS reweighting starts
  • add fast regression tests for the target, target weighting, and clone-prior total preservation
  • update policyengine-us to 1.711.0 so the freshness guard passes

Verification

  • uv run python .github/scripts/check_policyengine_us_dependency.py --mode fail
  • uv run towncrier check --compare-with upstream/main --staged
  • uv run ruff check policyengine_us_data/utils/loss.py policyengine_us_data/datasets/cps/enhanced_cps.py policyengine_us_data/utils/init.py policyengine_us_data/utils/national_target_parity.py tests/unit/calibration/test_loss_targets.py tests/unit/datasets/test_enhanced_cps_seeding.py
  • uv run pytest tests/unit/calibration/test_loss_targets.py tests/unit/datasets/test_enhanced_cps_seeding.py tests/unit/test_national_target_parity.py tests/unit/test_enhanced_cps.py
  • local synthetic reweight check with nation/source/household_count target: final total 98.99 on target 100 after 75 epochs

@MaxGhenis MaxGhenis force-pushed the fix-ecps-household-weight-prior branch from ab8195c to df73646 Compare May 27, 2026 22:13
@MaxGhenis MaxGhenis force-pushed the fix-ecps-household-weight-prior branch from df73646 to a230e35 Compare May 27, 2026 22:16
@MaxGhenis MaxGhenis merged commit d327734 into main May 27, 2026
14 checks passed
@MaxGhenis MaxGhenis deleted the fix-ecps-household-weight-prior branch May 27, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant