hdbscan
hdbscan copied to clipboard
Splitting parent cluster to left child and right child clusters
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?