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

Offen
#673 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp, numpy
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
C++
Sterne
32
Forks
38
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
20

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus dwavesystems/dwave-optimization

Alle Issues in dwavesystems/dwave-optimization

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.