Add `weights` and `minlength` parameters for `BinCountNode`

Abierto
#673 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, numpy
Área
backend

Línea de trabajo

Start by locating BinCountNode and its implementation and tests in the repository, then compare its current behavior with the linked NumPy bincount reference. Add support for weighted tallies and a minimum output length. Done when tests cover both parameters and confirm the output matches the described behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

To match with numpy

weights adds a specific value per input value to the bincount tally instead of incrementing by one.

minlength will extend the size of the output to the specified length if the default length, determined by the maximal value of the input, is smaller.

Reference - numpy bincount
https://numpy.org/doc/stable/reference/generated/numpy.bincount.html

Lenguaje dominante
C++
Estrellas
32
Forks
38
Merge medio
1 d 23 h
PR fusionados (30 d)
20

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de dwavesystems/dwave-optimization

Todos los issues de dwavesystems/dwave-optimization

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.