CEAC max.col returns random indices

Aperta
#167 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@feralaes ci sta già lavorando.

Dal 13/11/2026.

  • #235 di @feralaes — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
r
Ambito
analytics

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
R
Stelle
43
Fork
14
Merge medio
4h 44m
PR unite (30g)
15

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DARTH-git/dampack

Tutte le issue di DARTH-git/dampack

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.