Implement class to crop pulsemaps to maximum length
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- machine-learning
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 117
- Forks
- 115
- Merge medio
- 2 d 21 h
- PR fusionados (30 d)
- 1
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de graphnet-team/graphnet
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
graphnet-team/graphnet#933 ·
-
Spring cleanAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
graphnet-team/graphnet#927 · 1 comentario ·
-
Time for a new version release v1.8.1Quizá libre de nuevo @Aske-Rosted la tomó hace 75 días y no hay ningún pull request abierto. Abiertodecision
graphnet-team/graphnet#924 · 1 asignado ·
-
Make kaggle checkpoints part of the CIQuizá libre de nuevo @sevmag la tomó hace 75 días y no hay ningún pull request abierto. Abiertobug
graphnet-team/graphnet#921 · 2 comentarios · 1 asignado ·
-
decision deferred
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
graphnet-team/graphnet#919 ·
Todos los issues de graphnet-team/graphnet
Issues similares
-
MarkdownDocSerializer.post_process escapes '\<' to '\<', rendering literal '<' in CommonMarkAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
docling-project/docling-core#1067 ·
Los mantenedores suelen responder en 3 días
-
correction metadata
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
acl-org/acl-anthology#11101 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[BUG] crewai tool create/install/login exit 0 when they failPosiblemente ocupada @Kiko0301 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vllm-project/compressed-tensors#1033 ·
Los mantenedores suelen responder en 3 días
-
chore kaizen ui-rewrite
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
IBM/mcp-context-forge#7681 ·
Los mantenedores suelen responder en 2 días