K-means Clustering

Data clustering algorithm simulation

What is K-means clustering?

K-means is one of the most popular clustering algorithms in machine learning. It automatically groups similar data points into clusters by finding the centers of these groups.

How the algorithm works:

  1. 1. Randomly place K cluster centers
  2. 2. Assign each point to the nearest center
  3. 3. Update cluster centers as the mean of all points in the cluster
  4. 4. Repeat steps 2-3 until convergence

Usage:

  • • Customer segmentation
  • • Image analysis
  • • Grouping documents
  • • Anomaly detection
3
150
5

Visualization of clustering

Statistics

Iteration: 0
Within-cluster distance: 0.00
Inter-cluster distance: 0.00
Wind shape coefficient: 0.00
Status: 'Ready'

Convergence graph

Frequently asked questions