CEAC max.col returns random indices

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

Los mantenedores suelen responder en 1 día

@feralaes ya está trabajando en esto.

Desde el 13/11/2026.

  • #235 de @feralaes — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
r
Área
analytics

Línea de trabajo

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.

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

Descripción

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.

Lenguaje dominante
R
Estrellas
43
Forks
14
Merge medio
4 h 44 min
PR fusionados (30 d)
15

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

Todos los issues de DARTH-git/dampack

Issues similares

Más issues de R

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.