CS 6316 Machine Learning
Clustering
Yangfeng Ji
Department of Computer Science University of Virginia
CS 6316 Machine Learning Clustering Yangfeng Ji Department of - - PowerPoint PPT Presentation
CS 6316 Machine Learning Clustering Yangfeng Ji Department of Computer Science University of Virginia Clustering Clustering Clustering is the task of grouping a set of objects such that similar objects end up in the same group and dissimilar
Department of Computer Science University of Virginia
2
3
4
5
6
◮ Two images are similar ◮ Two documents are similar [Shalev-Shwartz and Ben-David, 2014, Page 307]
6
8
m
K
2
k1 ∈ Rd. Each µk is called a prototype
9
m
K
2
k1 ∈ Rd. Each µk is called a prototype
r,µ
9
k1
10
k1, for each xi, find the value of ri is
k′
2
11
i1, the algorithm updates µk as
i1 δ(ri k)xi
i1 δ(ri k)
12
k1, iterate the
k′
2
i1
i1 δ(ri k)xi
i1 δ(ri k)
13
14
16
16
1 (x − µ)
2
17
1 (x − µ)
2
q(xi | zi 1)
(2π)
d 2 |Σ1| 1 2
exp
2(xi − µ1)TΣ−1
1 (xi − µ1)
(2πǫ)
d 2
exp − 1 2ǫ xi − µ12
2
17
1 (x − µ)
2
q(xi | zi 1)
(2π)
d 2 |Σ1| 1 2
exp
2(xi − µ1)TΣ−1
1 (xi − µ1)
(2πǫ)
d 2
exp − 1 2ǫ xi − µ12
2
17
q(zi 1 | xi)
α · N(xi; µ1, Σ1) + (1 − α) · N(xi; µ2, Σ2)
2ǫ xi − µ12 2)
α exp(− 1
2ǫ xi − µ12 2) + (1 − α) exp(− 1 2ǫ xi − µ22 2 18
q(zi 1 | xi)
α · N(xi; µ1, Σ1) + (1 − α) · N(xi; µ2, Σ2)
2ǫ xi − µ12 2)
α exp(− 1
2ǫ xi − µ12 2) + (1 − α) exp(− 1 2ǫ xi − µ22 2
18
q(zi 1 | xi)
α · N(xi; µ1, Σ1) + (1 − α) · N(xi; µ2, Σ2)
2ǫ xi − µ12 2)
α exp(− 1
2ǫ xi − µ12 2) + (1 − α) exp(− 1 2ǫ xi − µ22 2
18
19
20
1Please refer to the demo code for more detail
21
22
Bishop, C. M. (2006). Pattern recognition and machine learning. springer. MacKay, D. (2003). Information theory, inference and learning algorithms. Cambridge university press. Shalev-Shwartz, S. and Ben-David, S. (2014). Understanding machine learning: From theory to algorithms. Cambridge university press.
23