You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make downstream aggregate weighting explicit; seed regime-aware imputer
downstream.py
- Replace reliance on MicroSeries ``.sum()`` semantics with an
explicit ``compute_downstream_weighted_aggregate`` helper that pulls
the correct entity weight variable (tax_unit_weight /
spm_unit_weight / person_weight / ...) from PE's variable metadata
and takes the numpy dot product. Same numerics as ``.sum()`` on the
v11 artifact, but test-covered and robust to simulator changes.
- ``ENTITY_WEIGHT_VARIABLES`` table maps PE entity keys to weight
variable names.
RegimeAwareDonorImputer
- Add ``seed`` constructor arg and deterministic
``_reset_prediction_rngs`` during ``generate`` so repeated calls
with the same seed produce byte-identical output.
scripts/run_b2_batched.py
- Classify each h5 variable by PE's variable metadata first, then
fall back to length matching; raises on ambiguous length matches
rather than silently picking one. Added structural-variable
overrides for IDs / weights / link columns.
- Wire batched runner's per-chunk aggregate through
``compute_downstream_weighted_aggregate``.
scripts/run_b2_validation.py / run_b2_validation_single_var.py
- Use ``compute_downstream_weighted_aggregate`` for consistency with
the other callers and explicit weighting.
Tests: 3 new entity-resolution tests in test_run_b2_batched.py; 3 new
weighted-aggregate tests in test_downstream.py; 2 new
seed-determinism tests in test_regime_aware_donor_imputer.py. 21
tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ To avoid rebuilding long prompts in chat:
84
84
<!-- gitnexus:start -->
85
85
# GitNexus — Code Intelligence
86
86
87
-
This project is indexed by GitNexus as **microplex-us** (4732 symbols, 12777 relationships, 300 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
87
+
This project is indexed by GitNexus as **microplex-us** (4778 symbols, 12879 relationships, 300 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
88
88
89
89
> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
<!-- gitnexus:start -->
2
2
# GitNexus — Code Intelligence
3
3
4
-
This project is indexed by GitNexus as **microplex-us** (4732 symbols, 12777 relationships, 300 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
4
+
This project is indexed by GitNexus as **microplex-us** (4778 symbols, 12879 relationships, 300 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
5
5
6
6
> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
0 commit comments