netneurolab / netneurotools

Useful tools from the Network Neuroscience Lab
https://netneurolab.github.io/netneurotools
BSD 3-Clause "New" or "Revised" License
57 stars 33 forks source link

cluster.find_consensus returns labels that do not exist in the input array #137

Open apathanasiadis opened 6 months ago

apathanasiadis commented 6 months ago

hello, im using the cluster.find_consensus as a final step in my clustering pipeline. first i confirmed that it worked using a toy example, but now with my data im getting few instances where the algorithm outputs labels do not exist in the original array. While my input labels matrix ranges from 0 to 4 (or 1 to 5), i can get output where the consensus label will be larger than 5, going up to 13. Is it that because there was no convergence and how can i resolve it? Should i try to increase the number of clustering solutions?

apathanasiadis commented 6 months ago

just tried with 1000 (10 times more) clustering solutions but it didnt work.