Reuse the baseline across UK local-area breakdown runs
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- backend, performance
Hướng nghiên cứu
Start by reading src/policyengine_simulation_executor/simulation_runtime.py, especially _uk_area_simulations, and inspect the JobStage.BASELINE spans to measure how much run time the baseline uses. If the cost is significant, compare the proposed cache and warm-worker options and choose an approach keyed by bundle, year, region, and the exact normalized baseline policy. Done means shared eligible runs reuse the baseline while disclosure checks and baseline stage reporting remain intact.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Each UK breakdown=local_areas run builds and computes its own baseline on the routed local-area dataset (_uk_area_simulations in projects/policyengine-simulation-executor/src/policyengine_simulation_executor/simulation_runtime.py). The baseline depends only on the bundle (model and dataset), the year, the region filter (UK-wide or a nation) and the baseline policy. For the usual case (current-law baseline), it is the same for every reform, but every breakdown request pays for it again.
The local-area dataset is the dense file, so the baseline is a large part of each breakdown's run time and cost.
Proposal
Reuse the baseline across breakdown requests that share the same bundle, year, region filter and baseline policy. Options:
- Cache the baseline's computed household-level outputs that the area builder reads (for example in the worker volume or object storage), keyed by bundle sha, year, region and a hash of the normalised baseline policy.
- Keep a warm baseline in the worker between jobs for the same key.
Things to keep: the disclosure checks, the stage reporting (JobStage.BASELINE), and an exact match on the baseline policy, so a custom baseline never reuses a current-law result.
Next step
Measure first: the share of a breakdown's run time that the baseline takes, from the stage spans. If it is large, choose option 1 or 2. Related: PolicyEngine/policyengine-app-v2#1411 (the app's duration estimate for a breakdown).
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 1
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 71
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PolicyEngine/policyengine-sim-api
-
Sim's table models still map the report columns API v1 dropsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PolicyEngine/policyengine-sim-api#1110 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Rename Populace to Microcosm in docstrings and test namesCó thể đã có người làm @MaxGhenis đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
PolicyEngine/policyengine-sim-api#1086 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update policyengine to 6.20.2Có thể đã có người làm @policyengine đã nhận 6 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 63/100
PolicyEngine/policyengine-sim-api#1083 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update policyengine to 6.7.3Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 70/100
PolicyEngine/policyengine-sim-api#823 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Integration tests fail due to missing UV virtual environment setupCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
PolicyEngine/policyengine-sim-api#314 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PolicyEngine/policyengine-sim-api
Issue tương tự
-
Adopt size-ratchet v4.0.3Đang mởarea: ci enhancement perceived difficulty: 1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Nitjsefnie-Harness-Commons/daedalus#1826 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
vllm-project/vllm-sail#398 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
DiamondLightSource/sm-bluesky#476 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Quick Installation step 2 installs from the plugin manager, but the plugin isn't published yetĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100