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

Đang mở
#673 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, numpy
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C++
Star
32
Fork
38
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
20

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dwavesystems/dwave-optimization

Tất cả issue của dwavesystems/dwave-optimization

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.