Expand description
k-medoids clustering (Partitioning Around Medoids).
See the book entry k-means and k-medoids.
Structsยง
- KMedoids
- PAM: like k-means, but each cluster is represented by an actual data point (its medoid)
instead of a mean, and the objective is the total distance (not squared), which makes the
result robust to outliers and lets any dissimilarity be used (see
KMedoids::fit_distances). A greedy BUILD phase picks the initial medoids, then SWAP repeatedly exchanges a medoid for a non-medoid whenever that lowers the total cost.