Lecture UnsupervisedML_SOM
Lecture UnsupervisedML_SOM
– Iteration:
> Choose a sample from dataset
> Calculate Euclidean distance between that sample and each weight vector
> The (x,y) position ”closest” to the sample is declared the Best Matching Unit
> The weights vector for the BMU get adjusted to more closely match the sample.
Amount of adjustment (learning) decreases as we go through iterations
> The weights vector for neighbors of the BMU also get adjusted, to a lesser extent.
The number of neighbors and how much they get adjusted also depends on
hyperparameters and the number of iterations.
– Convergence:
> Max number of iterations
> Monitoring of topological error
– Reference: https://link.springer.com/article/10.1007/BF00337288
Self-Organizing Map (SOM)
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
a
1 11 12
b 6 10
f
2
4 8
3
9
5 7
c
e
d
Self-Organizing Map (SOM) Algorithm
https://github.com/DataScienceUWMSE/SOM
> It has :
– The core implementation of SOM
– Visualization
– U-Matrix (“distance map” in MiniSOM)
– Project certain feature onto SOM