US local build: choose the starting weights of donor and ACS rows, and give counties enough records
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 12/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
Start with tools/build_us_acs_multispine_base.py (the --acs-share default) and us_runtime/base_pool.py::_pooled_household_weights, which scale donor and ACS rows. The measurement harness is in experiments/us-acs-local-l2-basis-20260928/, applied at a staging and materialize checkpoint from the #1719 build. Done means a measured ESS-versus-held-out-error frontier in experiments/, a declared seeding rule recorded in the release manifest, and a runbook updated to match. The seeding rule, mix and county design are open decisions, so this needs maintainer direction first.
索引モデルが issue の本文から書いたものです。
説明
Problem
The local file pools the national release's households (the donor rows) with ACS PUMS households. One number sets how they share the starting mass.
tools/build_us_acs_multispine_base.py --acs-sharehas the default 0.5. It is one national number.us_runtime/base_pool.py::_pooled_household_weightsscales the donor rows to hold1 − shareof the household mass, and the ACS rows to holdshare.- The September release has 57,240 donor rows and 1,531,614 ACS rows. So a donor row starts with about 27 times the weight of an ACS row.
Starting weights (before calibration; seeding options):
| ACS share | National ESS | Median district ESS |
|---|---|---|
| 0.5 (today) | 36,288 | 80 |
| 0.7 | 96,034 | 215 |
| 0.9 | 479,159 | 1,111 |
| In proportion to households | 778,061 | 1,822 |
| ACS rows only | 812,434 | 1,905 |
After calibration (experiment write-up):
| Configuration | National ESS | Districts below 50 | Held-out error (fold 0) |
|---|---|---|---|
| Share 0.5, no penalty (the release) | 13,646 | 352 | 0.1296 |
| Share 0.5, chi-square λ 0.03 | 20,690 | 278 | 0.1247 |
| Share 0.7, λ 0.01 | 34,280 | 30 | 0.1466 |
| Share 0.9, no penalty | 93,524 | 0 | 0.1765 |
- The cost of a higher share is mostly on SOI targets. Held-out SOI targets within 10% fall from 64% to 54% at share 0.9.
- The cause: the ACS rows get their tax variables from the donor rows through a QRF transfer.
- #1078 did not change the share. #1067 recommends a different pool, and says that the local mix is not chosen yet.
- The final-build runbook on #1719 (
docs/us-county-files-final-build.md) passes--acs-share 0.5and no--l2-lambda.
Two more effects:
- A donor row has no measured district. The national build draws its block, and so its district. While donor rows carry most of the weight, district accuracy has a limit too (#1673).
- Each ACS household gets exactly one county, from a draw inside its PUMA. A small county in a large PUMA gets few records. The proof of concept has a median county ESS of 5.95 (#1647).
Work
- Measure again on the new build. The national donor is now dense, so the numbers above move.
- Use one staging and materialize checkpoint from the #1719 build.
- Run a small grid with held-out folds: the share, the chi-square λ, and the
census_populationmultiplier. - The harness is in
experiments/us-acs-local-l2-basis-20260928/. It applies a share at the checkpoint, because the share only rescales the starting weights of the two sets of rows.
- Count the ceiling. For each district and county, compute the ESS at equal weights, over ACS rows and over all rows. An area whose ceiling is low needs more records. An area whose ceiling is high needs better weights.
- Make the seeding a declared rule. Replace the one number with a named rule in the shared pooling code. Examples: a fixed share, in proportion to households, in proportion to each spine's design ESS. The release records the rule. This part is country-agnostic: any build that pools spines states its rule as data.
- Choose the mix. #1067 recommends three CPS years plus ACS to 1.2M source households, with no CPS location clones, seeded in proportion to households. That gives ESS 276,474 on distinct households in 1,384,080 rows. Its caveats:
- in every arm, the ACS rows' CPS-only inputs come from one donor set of 57,240 households;
- in every arm, calibration makes held-out state age cells 2.5 times worse. The cause is not found.
- Design the county support. Test copies of each household in the counties of its PUMA, with the weight split by population share. The UK local build uses this clone pattern. Count ESS on distinct households, so that copies count once.
Done when
- A measured frontier of ESS against held-out error, on the new donor, is in
experiments/. - The seeding rule is a declared input, and the release manifest records it.
- The rule, the mix and the county design are ruled, and the runbook uses them.
Decisions needed
- The seeding rule and the mix.
- The county support design.
Not here
- The L2 anchor and the gates: the shared machinery issue.
- Which targets are in the loss: the target alignment issue. Fix the targets before the last choice of λ, because λ is in units of the loss.
Related
#1078, #1104, #1067, #578, #403, #1673, #1647, #922.
- 主要言語
- Python
- スター
- 0
- フォーク
- 6
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 190
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PolicyEngine/microcosm のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
PolicyEngine/microcosm#1766 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PolicyEngine/microcosm#1721 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
PolicyEngine/microcosm#1701 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PolicyEngine/microcosm#1638 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
PolicyEngine/microcosm#1431 ·
メンテナーはふだん 1 日以内に返信
PolicyEngine/microcosm の issue をすべて見る
似ている issue
-
claude-subscription-directsdk: tool calls with raw control characters in string values are droppedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NousResearch/hermes-official-plugins#538 ·
メンテナーはふだん 3 日以内に返信
-
bug(qdiffusion): EnergyModel.score_visible_logits computes biased visible/hidden on-ratios when solver returns variable solution counts per candidate対応中かも @houzhongyu が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
qboson/kaiwu-pytorch-plugin#2133 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MakazhanAlpamys/Soup#3415 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信