CEAC max.col returns random indices

Đang mở
#167 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 1 ngày

@feralaes đang làm issue này rồi.

Từ ngày 13/11/2026.

  • #235 của @feralaes — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
r
Lĩnh vực
analytics

Hướng nghiên cứu

The bug is in the CEAC calculation, where max.col is applied to a matrix of values and returns indices that look random even when there is no tie. Start by finding the CEAC code that calls max.col and reproduce the problem with a matrix that has a clear maximum in each row. Done means the indices match a row-wise which.max. Linked pull request #235 is already open against this issue, so review it before starting new work.

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

Mô tả

bug

When calculating the CEAC, the function max.col returns a random index. Although this is to be expected when there are ties, however, for our use case, on inspection, there is a true maximum (no tie), and yet random indices are returned. If max.col is replaced with which.max within an apply function on the matrix, the correct indices are returned.

Ngôn ngữ chính
R
Star
43
Fork
14
Merge trung bình
4 giờ 44 phút
Pull request đã merge (30 ngày)
15

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 DARTH-git/dampack

Tất cả issue của DARTH-git/dampack

Issue tương tự

Thêm issue về R

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.