Move the engine's random draws into the data build
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with the eight runtime draw sites named in the issue, including scenarios/uc_reform.py, data/economic_assumptions.py, dynamics/participation.py and scenarios/pip_reform.py; read the linked policyengine-core constraint and ratchet issue #2873. The issue lays out four migration steps across policyengine-uk, Microcosm UK and policyengine-uk-data. Done means simulations read stored draws from datasets while preserving outputs at each step, with any measured changes stated in the relevant PR.
索引モデルが issue の本文から書いたものです。
説明
policyengine-core bans randomness in variable formulas, so the data build has to draw each stochastic input and store it (PolicyEngine/policyengine-core#500). policyengine-uk still draws at run time in eight places:
uc_deduction_random_drawanduc_deduction_type_random_drawhash the benefit unit id.months_since_last_birthdayhashes the person id, then spreads people over the year within each age and sex.warm_home_discount_random_drawhashes the household id.add_universal_credit_reforminscenarios/uc_reform.pydraws one value per benefit unit from a seeded generator.uprate_student_loan_plansindata/economic_assumptions.pyhashes the person id.apply_participation_responsesindynamics/participation.pydraws from a seededRandomState.scenarios/pip_reform.pyseeds numpy's global stream and draws one value per person.
We'll move them in four steps:
- A code-health test stops new draws appearing and lists today's as a ratchet (#2873).
- policyengine-uk defines stored inputs for the Universal Credit, student loan and PIP draws, and reads them when a dataset supplies them. It runs today's code on a dataset without them.
- Microcosm UK and policyengine-uk-data write each missing column, with the value today's code computes for that file.
- policyengine-uk stops drawing in simulations built from data and reads only the stored columns.
We keep outputs unchanged at each step, except where that step's PR states and measures a change.
- 主要言語
- Python
- スター
- 53
- フォーク
- 34
- 平均マージ
- 3日 10時間
- マージ済み PR(30日)
- 321
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PolicyEngine/policyengine-uk のほかの issue
-
Lift the Universal Credit benefit cap for a claimant who receives War Widow's Pension対応中かも @juaristi22 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PolicyEngine/policyengine-uk#2792 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
PolicyEngine/policyengine-uk#2896 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
PolicyEngine/policyengine-uk#2894 ·
メンテナーはふだん 2 日以内に返信
-
Scottish Budget 2027-28: Scottish property income rates, council tax growth and a freeze switch, Bands I and J, and missing Scottish payments対応中かも @vahid-ahmadi が 1 日前に担当しました。 オープン
PolicyEngine/policyengine-uk#2891 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
January 2027 price cap: kWh, a mains gas flag and tariff parameters, the cap's consumption basis, and Northern Ireland対応中かも @vahid-ahmadi が 1 日前に担当しました。 オープン
PolicyEngine/policyengine-uk#2890 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
PolicyEngine/policyengine-uk の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aws-samples/sample-per-model-bedrock#795 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
Pretalx reports older version to be the latest release than what is actually installed and availableオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
micropython/micropython#19906 ·
メンテナーはふだん 1 日以内に返信