















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















TTIC 31020: Introduction to Machine Learning
Instructor: Greg Shakhnarovich
TTI–Chicago
November 15, 2010
We can use the cluster mean as a prototype representing all the examples assigned to the cluster. Vector quantization: construct a codebook using k-means.
(^10 2 4 6 8 ) 23
45
67
89
(^10 2 4 6 8 ) 23
45
67
89
(^10 2 4 6 8 ) 23
45
67
89
Whenever need to transmit x, transmit instead the closest codebook.
How can we set k? Cross-validation doesn’t work (why?)
How can we set k? Cross-validation doesn’t work (why?) The relevant statistic: within-class dissimilarity
Wk =
∑^ k
c=
yi=yj =c
‖xi − xj ‖^2.
A popular (heuristic) strategy: look for an “elbow” in Wk
0 2 4 6 8 10 12 14 16 18 20 1 0 2 4 6 8 10
23
45
67
89
k-means:
Can have empty clusters
Many strategies for initialization
μc = argmax x
min j=1,...,c
‖x − μj ‖.
Robustness: we want to diminish the influence of outliers
In some cases we want to explore the structure of the similarities in the data beyond partitioning to k groups.
E.g., a hierarchical structure (subclusters,sub-subclusters etc.)
In some cases we want to explore the structure of the similarities in the data beyond partitioning to k groups.
E.g., a hierarchical structure (subclusters,sub-subclusters etc.)
Hierarchical clustering: produce hierarchical representation, that can be depicted as a tree–dendrogram.
Denote by Cin the i-th cluster at level n.
Initialize CiN = {xi}.
At level n = N − 1 , N − 2 ,... , 1:
D(C in +1, C jn +1) = max l,m
D(C ln +1, C mn+1 )
C jn +1. For the rest of the clusters, Cln = C ln+