hdbscan icon indicating copy to clipboard operation
hdbscan copied to clipboard

How to know which node ID corresponds to which flat cluster label?

Open Hansyvea opened this issue 5 months ago • 1 comments

Hi, after clustering my data into 10 clusters, I want to find the relationships between the clusters. Eventually, I want to draw a custom dendromap. So I used clusterer.condensed_tree_.to_pandas() & clusterer._select_clusters. However, as I successfully get the relationships between each cluster, I have no idea how the node ID corresponds to cluster label. cluster label is Like 0 to 9, while Node ID could 9768.

Thanks in advance.

Hansyvea avatar Jul 15 '25 16:07 Hansyvea

Hi -- I'm just a random other user, but: Might you be willing to submit a jupyter notebook in colab, to show what you mean? Perhaps someone outside the maintainers would be willing to help you troubleshoot this with a bit more context (so they don't need to set it up themselves to see exactly what you're seeing :) )

patcon avatar Sep 01 '25 16:09 patcon