given a set of data points as input randomly assign each point to one of the k clusters repeat...

18
• Given a set of data points as input • Randomly assign each point to one of the k clusters • Repeat until convergence – Calculate model of each of the k clusters – Assign each point to the cluster with the closest model k-means Clustering Algorithm

Upload: aileen-sutton

Post on 20-Jan-2018

213 views

Category:

Documents


0 download

DESCRIPTION

Randomly assign each point to one of the clusters k-means Clustering Example

TRANSCRIPT

• Given a set of data points as input• Randomly assign each point to one of the k clusters• Repeat until convergence

– Calculate model of each of the k clusters– Assign each point to the cluster with the closest model

k-means Clustering Algorithm

k-means Clustering Example

Randomly assign each point to one of the clusters

k-means Clustering Example

Calculate center of each cluster

k-means Clustering Example

Calculate center of each cluster

k-means Clustering Example

Calculate center of each cluster

k-means Clustering Example

Assign each point to closest cluster center

k-means Clustering Example

Calculate center of each cluster

k-means Clustering Example

Calculate center of each cluster

k-means Clustering Example

Calculate center of each cluster

k-means Clustering Example

Assign each point to closest cluster center

k-means Clustering Example

Calculate center of each cluster

k-means Clustering Example

Calculate center of each cluster

k-means Clustering Example

Calculate center of each cluster

k-means Clustering Example

Convergence

k-means Clustering Example

Does k-means always work?

Does k-means always work?

Does k-means always work?