Professional Documents
Culture Documents
Computer
Vision
Lecture 7
Training & Testing
Hendrawan A.
Sekolah Tinggi Teknik Surabaya
Computer Vision
Diagram
Pre Feature
Image
Processing Extraction
Training Testing
Database Information
1
0
Sekolah Tinggi Teknik Surabaya
Agglomerative
Hierarchical
Clustering
1
1
Sekolah Tinggi Teknik Surabaya
Agglomerative
Hierarchical
Clustering
1
2
Sekolah Tinggi Teknik Surabaya
K-Mean
This method is one of the easiest
algorithm in unsupervised algorithm
but many people used it.
Algotihm:
Specify how many cluster we want to
produce (k)
Randomly choose k centers 1 ,... ,k
Repeat
Assign X1 ... Xn to their nearest
centers
Update i to the mean of the items
assigned to it 1
Until the cluster no longer change 3
Sekolah Tinggi Teknik Surabaya
K-Mean (Example)
1
4
Sekolah Tinggi Teknik Surabaya
Clustering
Because of clustering is
unsupervised learning method
then before we process to testing,
we must labeling every cluster
that we generate from training
For Example after training we
have 2 cluster (Apple and
Banana) but we dont know which
one is for apple and which one is
for banana. 1
5
Sekolah Tinggi Teknik Surabaya
Clustering
If we continue to testing without
knowing the label for each cluster
then our system wont be able to
give the correct information.
To give a label for each cluster,
we must give our system data
that we already know what is the
answer. For example we give a
picture of banana and we tell the
system what picture is that. 1
6
Sekolah Tinggi Teknik Surabaya