Docsity

Clustering: A Comprehensive Guide to Unsupervised Learning, Slides of Computer Fundamentals

Partial preview of the text

Download Clustering: A Comprehensive Guide to Unsupervised Learning and more Slides Computer Fundamentals in PDF only on Docsity!

Clustering

Outline

  • Introduction
  • K-means clustering
  • Hierarchical clustering: COBWEB

Clustering

4

Unsupervised learning: Finds “natural” grouping of instances given un-labeled data

Clustering Methods

  • Many different method and algorithms:
    • For numeric and/or symbolic data
    • Deterministic vs. probabilistic
    • Exclusive vs. overlapping
    • Hierarchical vs. flat
    • Top-down vs. bottom-up

Clustering Evaluation

  • Manual inspection
  • Benchmarking on existing labels
  • Cluster quality measures
    • distance measures
    • high similarity within a cluster, low across clusters

The distance function

  • Simplest case: one numeric attribute A
    • Distance(X,Y) = A(X) – A(Y)
  • Several numeric attributes:
    • Distance(X,Y) = Euclidean distance between X,Y
  • Nominal attributes: distance is set to 1 if

values are different, 0 if they are equal

  • Are all attributes equally important?
    • Weighting the attributes might be necessary

K-means example, step 1

10

k

k

k

X

Y

Pick 3 initial cluster centers (randomly)

K-means example, step 2

11

k

k

k

X

Y

Assign each point to the closest cluster center

K-means example, step 4

13

X
Y

Reassign points closest to a different new cluster center

Q: Which points are reassigned?

k

k

k

K-means example, step 4 …

14

X
Y

A: three points with animation

k

k k

K-means example, step 5

16

X
Y

move cluster centers to cluster means

k

k

k

Discussion, 1

What can be the problems with

K-means clustering?

Discussion, 3

A: To increase chance of finding global

optimum: restart with different random

seeds.

K-means clustering summary

Advantages

  • Simple, understandable
  • items automatically assigned to clusters

Disadvantages

  • Must pick number of clusters before hand
  • All items forced into a cluster
  • Too sensitive to outliers