Re: [scikit-learn] How to get centroids from SciPy's hierarchical agglomerative clustering?

2017-10-20 Thread Andreas Mueller
The centroids don't "represent" the clusters, though, and you can construct arbitrary complex clusterings where all the centroids are identical. On 10/20/2017 01:08 PM, Sebastian Raschka wrote: Independent from the implementation, and unless you use the 'centroid' or 'average linkage' method,

Re: [scikit-learn] How to get centroids from SciPy's hierarchical agglomerative clustering?

2017-10-20 Thread Sebastian Raschka
Independent from the implementation, and unless you use the 'centroid' or 'average linkage' method, cluster centroids don't need to be computed when performing the agglomerative hierarchical clustering . But you can always compute it manually by simply averaging all samples from a cluster (for e