ConsensusCluster doesn't seem to use consensus matrix for clustering
Nadie ha tomado este issue todavía.
- #29 de @sharifhsn — cerrado sin fusionar
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- machine-learning
Línea de trabajo
The problem is in fit_predict() in src/flowsom/models/consensus_cluster.py (around lines 105-109), which clusters the raw data and never uses the consensus matrix built by fit(). Read fit() to see how self.Mk is produced, then check how the ConsensusCluster class builds its precomputed-distance clustering. Done means fit_predict() clusters on the consensus-derived distances (or exposes that as an option) and the output differs from the raw-data path on a small test dataset.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Report
When reviewing the ConsensusCluster implementation (src/flowsom/models/consensus_cluster.py, v0.2.2), it seems that fit_predict() ignores the fit() function that does the consensus clustering and just runs AgglomerativeClustering once on raw data (lines 105-109):
if self.z_score:
data = self._z_score(data)
return self.cluster(n_clusters=self.n_clusters, linkage=self.linkage).fit_predict(data)
Based on the consensus clustering paper and the R FlowSOM implementation, it seems that fit_predict() should:
- Build consensus matrix using
fit() - Convert to distance matrix:
distance_matrix = 1 - self.Mk - Cluster using consensus distances (or at least have an option to cluster on the matrix or data, as in the ConsensusCluster class:
AgglomerativeClustering(n_clusters=k, metric='precomputed').fit_predict(distance_matrix)
Versions
v0.2.2
- Lenguaje dominante
- Python
- Estrellas
- 36
- Forks
- 7
- Merge medio
- 23 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de saeyslab/FlowSOM_Python
-
Pin dependencies and move to uvQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
saeyslab/FlowSOM_Python#19 ·
-
Getting Cluster labelsAbiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
saeyslab/FlowSOM_Python#14 · 1 comentario ·
Todos los issues de saeyslab/FlowSOM_Python
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día