Map the stored WIC take-up draw (would_claim_wic) onto takes_up_wic_if_eligible when loading US data
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 64/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start with PolicyEngineUSLatest._build_simulation_from_dataset, then trace managed_microsimulation and create_datasets to compare their loading behavior. Check the manifest-pinned dataset and the microcosm#1026 findings for the stored column and expected WIC totals. Done means the legacy draw maps for every dataset year when the new input is absent, while an existing takes_up_wic_if_eligible column takes precedence.
索引モデルが issue の本文から書いたものです。
説明
policyengine-us 2.2.1 (this package's US pin) has no variable would_claim_wic. Its WIC take-up input is takes_up_wic_if_eligible (Person, MONTH, default_value = True), and wic is defined_for it.
The certified US default, populace-us-2024-spm-20260915 (pinned in src/policyengine/data/bundle/manifest.json), stores the seeded take-up draw as would_claim_wic only. Both US load paths skip a stored column the engine does not define, so the draw is dropped and every WIC-eligible person takes WIC up:
PolicyEngineUSLatest._build_simulation_from_datasetsets inputs only for columns insystem.variables;managed_microsimulationandcreate_datasetshand the file topolicyengine_us.Microsimulation, whose loader skips unknown columns.
PolicyEngine/microcosm#1026 measured 2024 WIC at $11.52B with the draw ignored and $6.63B with it restored (published runtime: $6.68B), and 12.65M vs 6.66M recipients.
Fix (option 2 of microcosm#1026): when loading, if the data stores would_claim_wic, the engine does not define it but does define takes_up_wic_if_eligible, and the data does not already store takes_up_wic_if_eligible, set the live input from the stored draw for every month of every dataset year. The mapping should retire itself once the data carries the new name.
- 主要言語
- Python
- スター
- 7
- フォーク
- 9
- 平均マージ
- 14時間 49分
- マージ済み PR(30日)
- 9
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PolicyEngine/policyengine.py のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PolicyEngine/policyengine.py#473 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
PolicyEngine/policyengine.py#436 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PolicyEngine/policyengine.py#408 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
PolicyEngine/policyengine.py#532 ·
メンテナーはふだん 1 日以内に返信
-
Design note: a weighted module inside policyengine.py, replacing the microdf dependency対応中かも @MaxGhenis が 6 日前に担当しました。 オープン
PolicyEngine/policyengine.py#528 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
PolicyEngine/policyengine.py の issue をすべて見る
似ている issue
-
ACK_WAITING HELP_WANTED UPDATE_CS
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OWASP/CheatSheetSeries#2458 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
BasedHardware/omi#19711 ·
メンテナーはふだん 1 日以内に返信
-
Qwen3_5MoeModel no longer returns router_logits, breaking aux loss with output_router_logits=Trueオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
huggingface/transformers#49172 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
vllm-project/vllm-metal#885 ·
メンテナーはふだん 1 日以内に返信