咨询与建议

看过本文的还看了

相关文献

该作者的其他文献

文献详情 >Log-Time K-Means for 1D Data: ... 收藏
arXiv

Log-Time K-Means for 1D Data: Novel Approaches with Proof and Implementation

1D 데이터에 대한 로그 시간 K-평균 클러스터링: 새로운 접근법의 증명과 구현

作     者:Hyun, Jake 

作者机构:Computer Science and Engineering College of Engineering Seoul National University Korea Republic of 

出 版 物:《arXiv》 (arXiv)

年 卷 期:2024年

核心收录:

主  题:Consensus algorithm 

摘      要:Clustering is a key task in machine learning, with k-means being widely used for its simplicity and effectiveness. While 1D clustering is common, existing methods often fail to exploit the structure of 1D data, leading to inefficiencies. This thesis introduces optimized algorithms for k-means++ initialization and Lloyd’s algorithm, leveraging sorted data, prefix sums, and binary search for improved computational performance. The main contributions are: (1) an optimized k-cluster algorithm achieving O(l · k2 · log n) complexity for greedy k-means++ initialization and O(i·k·log n) for Lloyd’s algorithm, where l is the number of greedy k-means++ local trials, and i is the number of Lloyd’s algorithm iterations, and (2) a binary search-based two-cluster algorithm, achieving O(log n) runtime with deterministic convergence to a Lloyd’s algorithm local minimum. Benchmarks demonstrate over a 4500x speedup compared to scikit-learn for large datasets while maintaining clustering quality measured by within-cluster sum of squares (WCSS). Additionally, the algorithms achieve a 300x speedup in an LLM quantization task, highlighting their utility in emerging applications. This thesis bridges theory and practice for 1D k-means clustering, delivering efficient and sound algorithms implemented in a JIT-optimized open-source Python library. Copyright © 2024, The Authors. All rights reserved.

读者评论 与其他读者分享你的观点

用户名:未登录
我的评分