Use household-level fallback SPM units#80
Merged
Conversation
This was referenced May 29, 2026
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
Evidence
uv run --python 3.13 --extra dev ruff check src/microplex_us/pipelines/us.py tests/pipelines/test_us.pyuv run --python 3.13 --extra dev --extra policyengine pytest tests/pipelines/test_us.py -k 'spm_unit or tax_unit_role_flags or role_conflicts or missing_role_flag_heads or young_head_hint_dependents or positive_income_adult_heads'\n-uv run --python 3.13 --extra dev --extra policyengine pytest tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_uses_household_level_spm_fallback\n-uv run --python 3.13 --extra dev --extra policyengine pytest tests/pipelines/test_us.py\n\n## Structural probe\nUsing the existing calibrated small dataset at/Users/maxghenis/CosilicoAI/microplex-us/artifacts/small_asec_acs100k_ssi_disability_model_fixed_sipp_status_20260524/gd_l0zero_e2000_latest_us_data/calibrated_data.parquet, the new builder writes/Users/maxghenis/CosilicoAI/microplex-us/artifacts/small_asec_acs100k_household_spm_20260529/structural_probe.jsonwith:\n\n- households: 100,000\n- persons: 245,714\n- tax units: 130,980, unchanged from the household-coherent tax-unit build\n- SPM units: 100,000, down from the prior 159,331 family-mirrored fallback\n- families: 159,331, intentionally unchanged in this PR\n\nThis leaves the richer family-unit question for a separate change while removing the worst SPM overfragmentation from the PE export fallback.