Papers β€Ί HACAM: Hierarchical Agglomerative Clustering Around Medoids - and its Limitations

HACAM: Hierarchical Agglomerative Clustering Around Medoids - and its Limitations

1 Sep 2021Lernen, Wissen, Daten, Analysen 2021 9archive 2025-07-28

Erich Schubert

Partitioning Around Medoids (PAM) is a popular and flexible clustering method. Also known by the name π‘˜-Medoids clustering, and originally conceived for the 𝐿1-norm, it can be used to cluster data into π‘˜ partitions with respect to an arbitrary distance or similarity measure. The ability to work with any distance makes this method more widely applicable than, for example, π‘˜-means clustering. Similar to π‘˜-means, a challenge when using PAM is the need to choose the number of clusters, π‘˜, before running the algorithm. In many cases, the β€œoptimal” π‘˜ will not be known beforehand, and the user may need to run PAM several times with different π‘˜ and rely on additional heuristics to pick the β€œbest” result. We introduce the algorithm Hierarchical Agglomerative Clustering Around Medoids (HACAM), a combination of ideas from classic hierarchical agglomerative clustering (HAC), but where points are clustered around medoids. In our approach, each subtree of the dendrogram has a representative point, which is the medoid: the point with the smallest average distance to all others. In contrast to the arithmetic mean, this does not make assumptions on the data representation or distance function used. Unfortunately, we also show that the requirement to produce a hierarchical result is a limiting factor to the cluster quality, as the optimum result for a particular number of clusters π‘˜ does not have to be consistent with the optimum result with π‘˜+1 clusters. Hence, if a range of interesting values of π‘˜ is known beforehand, existing algorithms such as FasterPAM remain favorable.

PaperPDFCode

Code

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Clustering

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change Β· a person checks every report against the paper or source before anything changes; decisions are listed on /corrections