Score legacy flat PE H5s#219
Merged
Merged
Conversation
cd9c635 to
f67add9
Compare
f67add9 to
70002c3
Compare
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.
Adds read-only scoring support for legacy flat PE H5 files that store root variable/ datasets instead of Populace entity tables. This lets us score old eCPS-style artifacts against the current Populace target surface before replacing them.\n\nAlso normalizes legacy zero-weight households out of the scoring frame so target materialization batches cannot create invalid all-zero weight vectors; weighted totals are unchanged.\n\nValidation:\n- uv run --python 3.13 --package populace-build --extra us --group dev pytest packages/populace-build/tests/test_us_fiscal_refresh_builder.py -k "legacy_pe_flat_h5 or legacy_cd_provenance" packages/populace-build/tests/test_us_plan.py::TestUsSources::test_no_incumbent_data_package_references_in_live_tree\n- uv run --python 3.13 --package populace-build --extra us --group dev ruff check tools/score_us_fiscal_targets.py packages/populace-build/tests/test_us_fiscal_refresh_builder.py\n- uv run --python 3.13 --package populace-build --extra us --group dev ruff format --check tools/score_us_fiscal_targets.py packages/populace-build/tests/test_us_fiscal_refresh_builder.py\n\nApplied locally to score the old eCPS-style national H5 on the current 32,637-target surface; final_loss=0.4779988241657727.