简体   繁体   中英

scipy kmeans — how to get actual threshold between clusters

Using scipy kmeans I can get the centroids of my clusters with

centroids, variance = kmeans(pixel,3)

and also an array showing which value is assigned to which cluster:

code, distance = vq(features, centroids)

But how do I get the actual threshold values separating the clusters from each other? Is there any variable or command containing these?

thanks for any advice

K-means does not use numerical thresholds.

Every point belongs to the closest cluster, so the "threshold" is the hyperplane (see " Voronoi diagram " in Wikipedia) inbetween of the two nearest cluster centers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM