July 6, 2017
7:59 p.m.
Hello Sema, On 05/07/17 13:27, Sema Atasever wrote:
How can i know which cluster member represents best each cluster?
You could try to pick the one that's closest to the cluster centroid..
In the birch code i use this code line: *centroids = brc.subcluster_centers_* How do I interpret this line of code output?
It is supposed to give your the centroid of each leaf node (computed in https://github.com/scikit-learn/scikit-learn/blob/ab93d65/sklearn/cluster/bi...). I would just recompute the centroid from the labels, though, with X[brc.labels_==k, :].mean() for k in np.unique(brc.labels_) to be sure of the results... -- Roman