Harden long-run 2100 donor-composite calibration#953
Merged
Conversation
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
ss-payroll-tobcalibration can validate with nonnegative weightsrun_long_term_production.pyand the manual long-run workflowVerification
env -u UV_FROZEN uv run ruff check policyengine_us_data/datasets/cps/long_term/run_household_projection.py policyengine_us_data/datasets/cps/long_term/run_household_projection_parallel.py policyengine_us_data/datasets/cps/long_term/prototype_synthetic_2100_support.py policyengine_us_data/datasets/cps/long_term/support_augmentation.py policyengine_us_data/datasets/cps/long_term/calibration_artifacts.py policyengine_us_data/datasets/cps/long_term/projection_utils.py policyengine_us_data/datasets/cps/long_term/run_long_term_production.py modal_app/long_term_publishable_probe.py tests/unit/test_long_term_calibration_contract.pyenv -u UV_FROZEN uv run ruff format --check .env -u UV_FROZEN uv run pytest tests/unit/test_long_term_calibration_contract.py -q(66 passed)env -u UV_FROZEN uv run python policyengine_us_data/datasets/cps/long_term/run_household_projection.py 2100 2100 --profile ss-payroll-tob --target-source trustees_2025_current_law --support-augmentation-profile donor-backed-composite-v1 --support-augmentation-target-year 2100 --support-augmentation-blueprint-base-weight-scale 5.0 --support-augmentation-sanitize-clone-non-target-income --output-dir tmp/verify_2100 --save-h5env -u UV_FROZEN uv run python policyengine_us_data/datasets/cps/long_term/run_long_term_production.py --years 2100 --jobs 1 --output-dir tmp/verify_2100_production --profile ss-payroll-tob --target-source trustees_2025_current_law --support-augmentation-profile donor-backed-composite-v1 --support-augmentation-target-year 2100 --support-augmentation-blueprint-base-weight-scale 5.0 --support-augmentation-sanitize-clone-non-target-income2100 validation result
true[]368.198811.2376%38.0720%2.36e-7%41,634; negative weight pct:0.0