Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AI and Deep Learning by (50.2k points)

There is only one question related to this and it is more about which one is better. I just don't really understand the difference. I mean they both work with vectors, which are assigned randomly to clusters, they both work with the centroids of the different clusters in order to determine the winning output node. I mean, where exactly lies the difference?

1 Answer

0 votes
by (107k points)

K-means is one of the simplest unsupervised learning algorithms that solve the well-known clustering problem. The procedure follows a simple and easy way to classify a given data set through a certain number of clusters (assume k clusters) and has a low computational cost.

The shortcoming of k-means is that the value of K(number of groups/clusters) must be determined beforehand. K-means is a greedy algorithm and is hard to attain the global optimum clustering results.

In K-means the nodes (centroids) are independent of each other,  clusters are formed through centroid(nodes) and cluster size.

Whereas in SOM(Self Organizing Maps), the number of neurons of the output layer has a close relationship with the class number in the input stack. In this, the clusters are formed geometrically.

From the performance point of view, the K-means algorithm performs better than SOM if the number of clusters increases. K-means is more sensitive to the noise present in the dataset compared to SOM.

To learn more on Data Science, visit our free Data Science tutorial.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...