paper-with-me

홈 › Papers

Faster k-Medoids Clustering: Improving the PAM, CLARA, and CLARANS Algorithms

2018-10-12 · Erich Schubert, Peter J. Rousseeuw

Clustering non-Euclidean data is difficult, and one of the most used algorithms besides hierarchical clustering is the popular algorithm Partitioning Around Medoids (PAM), also simply referred to as k-medoids. In Euclidean geometry the mean-as used in k-means-is a good estimator for the cluster center, but this does not hold for arbitrary dissimilarities. PAM uses the medoid instead, the object with the smallest dissimilarity to all others in the cluster. This notion of centrality can be used with any (dis-)similarity, and thus is of high relevance to many domains such as biology that require the use of Jaccard, Gower, or more complex distances. A key issue with PAM is its high run time cost. We propose modifications to the PAM algorithm to achieve an O(k)-fold speedup in the second SWAP phase of the algorithm, but will still find the same results as the original PAM algorithm. If we slightly relax the choice of swaps performed (at comparable quality), we can further accelerate the algorithm by performing up to k swaps in each iteration. With the substantially faster SWAP, we can now also explore alternative strategies for choosing the initial medoids. We also show how the CLARA and CLARANS algorithms benefit from these modifications. It can easily be combined with earlier approaches to use PAM and CLARA on big data (some of which use PAM as a subroutine, hence can immediately benefit from these improvements), where the performance with high k becomes increasingly important. In experiments on real data with k=100, we observed a 200-fold speedup compared to the original PAM SWAP algorithm, making PAM applicable to larger data sets as long as we can afford to compute a distance matrix, and in particular to higher k (at k=2, the new SWAP was only 1.5 times faster, as the speedup is expected to increase with k).

📄 PDF Abstract BibTeX arXiv:1810.05691

Code (4)

elki-project/elki 공식 구현
kno10/python-kmedoids
kno10/rust-kmedoids
lixun910/fastkmedoids

Tasks

Clustering

Similar Papers 제목 키워드 기반

Fast and Eager k-Medoids Clustering: O(k) Runtime Improvement of the PAM, CLARA, and CLARANS Algorithms

2020-08-12 · Erich Schubert, Peter J. Rousseeuw

Clustering non-Euclidean data is difficult, and one of the most used algorithms besides hierarchical clustering is the popular algorithm Partitioning Around Medoids (PAM), also simply referred to as k-medoids clustering.…

Clustering

BanditPAM++: Faster $k$-medoids Clustering

2023-09-21 · NeurIPS 2023 11

Clustering is a fundamental task in data science with wide-ranging applications. In $k$-medoids clustering, cluster centers must be actual datapoints and arbitrary distance metrics may be used; these features allow for g…

BanditPAM: Almost Linear Time k-Medoids Clustering via Multi-Armed Bandits

2020-12-01 · NeurIPS 2020 12 · Mo Tiwari, Martin J. Zhang, James Mayclin, Sebastian Thrun 외

Clustering is a ubiquitous task in data science. Compared to the commonly used k-means clustering, k-medoids clustering requires the cluster centers to be actual data points and supports arbitrary distance metrics, which…

ClusteringMulti-Armed Bandits

BanditPAM: Almost Linear Time $k$-Medoids Clustering via Multi-Armed Bandits

2020-06-11 · Mo Tiwari, Martin Jinye Zhang, James Mayclin, Sebastian Thrun 외

Clustering is a ubiquitous task in data science. Compared to the commonly used $k$-means clustering, $k$-medoids clustering requires the cluster centers to be actual data points and support arbitrary distance metrics, wh…

ClusteringMulti-Armed Bandits

The K-modes algorithm for clustering

2013-04-24 · Miguel Á. Carreira-Perpiñán, Weiran Wang

Many clustering algorithms exist that estimate a cluster centroid, such as K-means, K-medoids or mean-shift, but no algorithm seems to exist that clusters data by returning exactly K meaningful modes. We propose a natura…

Clusteringvalid