# Difference between revisions of "K-Means"

(New page: K-means is a clustering algorithm used extensively in data-mining and elsewhere, important primarily for its simplicity. Many data-mining algorithms show a high degree of data parallelism....) |
|||

(4 intermediate revisions by 3 users not shown) | |||

Line 1: | Line 1: | ||

K-means is a clustering algorithm used extensively in data-mining and elsewhere, | K-means is a clustering algorithm used extensively in data-mining and elsewhere, | ||

important primarily for its simplicity. Many data-mining algorithms show a high degree of data parallelism. | important primarily for its simplicity. Many data-mining algorithms show a high degree of data parallelism. | ||

− | |||

In k-means, a data object is comprised of several values, called features. By dividing | In k-means, a data object is comprised of several values, called features. By dividing |

## Latest revision as of 17:32, 4 May 2009

K-means is a clustering algorithm used extensively in data-mining and elsewhere, important primarily for its simplicity. Many data-mining algorithms show a high degree of data parallelism.

In k-means, a data object is comprised of several values, called features. By dividing a cluster of data objects into K sub-clusters, k-means represents all the data objects by the mean values or centroids of their respective sub-clusters. The initial cluster center for each sub-cluster is randomly chosen or derived from some heuristic. In each iteration, the algorithm associates each data object with its nearest center, based on some chosen distance metric. The new centroids are calculated by taking the mean of all the data objects within each sub-cluster respectively. The algorithm iterates until no data objects move from one sub-cluster to another.