Implement class to crop pulsemaps to maximum length
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
调研方向
Read the pulsemap processing changes in #558 and find the existing NodeDefinition implementations. Then determine how node construction and cropping methods fit together, including whether the proposed reusable class supports the listed selection strategies. Done means pulsemaps can be cropped to a maximum length through a common class and the cropping methods can be reused by other node definitions.
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
With #558 we now have better control over how a pulsemap is processed. From the Kaggle competition it became apparent that many of the top scoring models simply cropped the number of pulses to some fixed number, to reduce the impact of the n^2 term from Self-Attention components.
While their primary way to select pulses was to simply select the first n pulses, I believe it might be interesting to look into other methods of selecting pulses. (Randomly, sorted by charge, sorted by probability of real signal, farthest point sampling etc.)
Describe the solution you'd like
To avoid having to implement many Node Definitions I think it might make sense to make a common class for all cropped nodes
class CroppedNodes(NodeDefinition):
def __init__(self, max_pulses: int, cropping_method: Callable) -> None:
super().__init__()
self.max_pulses = max_pulses
self._cropping_method = cropping_method
def _construct_nodes(self, x: torch.Tensor) -> Data:
x = self._cropping_method(x, self.max_pulses)
return Data(x=x)
Such a structure would also allow to easier re-use the copping methods in other node definitions. (Maybe you want to crop after calculating summary nodes per dom, to make sure you do not get an event which triggered 5k doms.
Describe alternatives you've considered
We could of course just implement each cropping algorithm as a subclass of a common CroppedNodes class and have the logic restricted to each subclass. But I think the cropping logic is general enough that there is merit to have it as a separate component.
- 主要语言
- Python
- 星标
- 117
- 派生
- 115
- 平均合并
- 2 天 21 小时
- 30 天内合并 PR
- 1
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graphnet-team/graphnet 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
graphnet-team/graphnet#933 ·
-
Spring clean未关闭
难度 5/5 一周以上 新手友好度 25/100
graphnet-team/graphnet#927 · 1 条评论 ·
-
Time for a new version release v1.8.1可能重新可做 @Aske-Rosted 于 75 天前认领,目前没有进行中的 PR。 未关闭decision
graphnet-team/graphnet#924 · 已指派 1 人 ·
-
Make kaggle checkpoints part of the CI可能重新可做 @sevmag 于 75 天前认领,目前没有进行中的 PR。 未关闭bug
graphnet-team/graphnet#921 · 2 条评论 · 已指派 1 人 ·
-
decision deferred
难度 5/5 一周以上 新手友好度 25/100
graphnet-team/graphnet#919 ·
查看 graphnet-team/graphnet 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
vllm-project/vllm#69791 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
BCStudentSoftwareDevTeam/cas#481 ·
维护者通常 7 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100
维护者通常 1 天内回复