hdbscan icon indicating copy to clipboard operation
hdbscan copied to clipboard

Splitting parent cluster to left child and right child clusters

Open Pavelrst opened this issue 2 years ago • 0 comments

Is it possible to split an existing cluster to two children clusters?

Let's say I run the algorithm and got 3 clusters (+outlier points):

clusterer = hdbscan.HDBSCAN(...) clusterer.labels_ [-1, 0, 1, 0, -1, 2, 2, 2, 2, 2, 2, 2]

I would like to do something like this:

clusterer.split_cluster_to_sons(cluster_id=2) # this command splits the cluster "2" to left and right sons "3" and "4" clusterer.labels_ [-1, 0, 1, 0, -1, 3, 3, 3, 4, 4, 4, 4]

Is something like that is possible?

Pavelrst avatar Jun 06 '22 11:06 Pavelrst