A self-organising map has three neurons on a line with weight vectors w1=(0,0), w2=(2,0) and w3=(5,0). The input is x=(3,1), the learning rate is η=0.5 and the neighbourhood is h=exp⁡(−d2/(2σ2)) with σ=1, where d is the distance on the map between neurons (neurons 1, 2, 3 are at positions 1, 2, 3). Which neuron wins, and what are the three weight vectors after one update?

Unsupervised learning, Self-organising maps
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can find the best-matching unit and apply the neighbourhood-weighted update wj←wj+η hj (x−wj).

Key idea

The winner (best-matching unit, BMU) is arg⁡min⁡j∥x−wj∥. Every neuron moves towards x by a factor ηhj, where hj decays with the map distance to the winner. Neighbours on the map are pulled together, so the map becomes topology preserving.

Steps

  1. Squared distances to x=(3,1): ∥x−w1∥2=9+1=10, ∥x−w2∥2=1+1=2, ∥x−w3∥2=4+1=5. Neuron 2 wins.
  2. Neighbourhood values: the winner has d=0 so h2=1. Neurons 1 and 3 have d=1, so h=e−1/2=0.6065.
  3. Winner: w2←(2,0)+0.5⋅1⋅((3,1)−(2,0))=(2,0)+0.5(1,1)=(2.5, 0.5).
  4. Neuron 1: factor 0.5⋅0.6065=0.3033. w1←(0,0)+0.3033 (3,1)=(0.910, 0.303).
  5. Neuron 3: w3←(5,0)+0.3033 ((3,1)−(5,0))=(5,0)+0.3033(−2,1)=(4.393, 0.303).
  6. In training, η and σ both shrink over time, so the map first orders globally and then fine-tunes locally.

Common mistakes

How long your answer should be

Half a page; 4–5 minutes.

Read this

Previous in Unsupervised learning: Four items a,b,c,d have dissimilarities ab=2, ac=5, ad=9, bc=3, bd=8, cd=4.5. If you run agglomerative clustering with single, complete and average linkage, what are the merge order and heights for each, and which linkage shows the chaining effect?
Next in Unsupervised learning: The covariance matrix of a 4-dimensional dataset has eigenvalues 5, 3, 1.5 and 0.5. (a) What fraction of the variance does each principal component explain? (b) How many components are needed to keep at least 90% of the variance? (c) What is the average squared reconstruction error per point when you keep that many?