Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

K- Means algorithm

I'm trying to program a k-means algorithm in Java. I have calculated a number of arrays, each of them containing a number of coefficients. I need to use a k-means algorithm in order to group all this data. Do you know any implementation of this algorithm?

Thanks

like image 423
dedalo Avatar asked Jun 28 '09 21:06

dedalo


People also ask

What is meant by k-means algorithm?

k-means is a technique for data clustering that may be used for unsupervised machine learning. It is capable of classifying unlabeled data into a predetermined number of clusters based on similarities (k).

What is k-means algorithm in k-means clustering?

The steps to form clusters are: Step 1: Choose K random points as cluster centers called centroids. Step 2: Assign each x(i) to the closest cluster by implementing euclidean distance (i.e., calculating its distance to each centroid) Step 3: Identify new centroids by taking the average of the assigned points.

What is k-means algorithm in machine learning?

K-Means Clustering is an Unsupervised Learning algorithm, which groups the unlabeled dataset into different clusters. Here K defines the number of pre-defined clusters that need to be created in the process, as if K=2, there will be two clusters, and for K=3, there will be three clusters, and so on.


1 Answers

I haven't studied the code myself, but there's a multithreaded K-means implementation given in this JavaWorld article that looks pretty instructive.

like image 64
jtb Avatar answered Oct 26 '22 20:10

jtb