Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

UK metrics review: decile bound (absolute 0.005, a share bound) is applied to decile mean incomes in GBP

未关闭
#665 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
data, testing-qa

调研方向

Start by reading uk_review_bounds.json and the comparator in uk_candidate.py, then trace how decile rows and their gbp_household units are handled. Choose and justify a unit-consistent bound while preserving historical receipts. Add a test showing that a sub-pound change in a decile mean does not flag and a material share shift does.

由索引模型根据 Issue 内容生成。

描述

Found while reviewing candidate 2.136.0 + uk-data 1.58.2 (pair 7f2b5855…, ledger attempt 4773da7ff7c0).

uk_review_bounds.json defines kind decile with absolute 0.005 and relative 0, described as half a point on a decile share. The metrics report's decile rows are mean household incomes, with unit gbp_household, and the comparator in uk_candidate.py applies the bound to their raw difference. So a £0.005 change in a decile's mean income raises a flag. On this candidate that's 70 of the 148 model-only and 70 of the 105 data-only metric flags.

Fix options (pick and justify):

  • (a) compare decile shares (decile income / total), so the 0.005 share bound means what it says; or
  • (b) give gbp_household decile means a unit-correct bound (e.g. relative), consistent with the other kinds.

Keep historical receipts as they are, and add a test that a sub-pound change in a decile mean doesn't flag while a material share shift does.

主要语言
Python
星标
8
派生
10
平均合并
1 天 1 小时
30 天内合并 PR
50

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PolicyEngine/policyengine.py 的其他 Issue

查看 PolicyEngine/policyengine.py 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。