DEV Community

Cover image for Self Organizing Maps (SOMs)
Dana
Dana

Posted on

1

Self Organizing Maps (SOMs)

  • Self Organizing Map or Kohonen Map or SOM is a type of Artificial Neural Network which is also inspired by biological models of neural systems.
  • It follows an unsupervised learning approach and trained its network through a competitive learning algorithm.
  • SOM is used for clustering and mapping (dimensionality reduction) techniques to map multidimensional data onto lower-dimensional which allows people to reduce complex problems for easy interpretation.
  • SOM has two layers one is the Input layer and the other one is the Output layer.

How do SOM works?

wij = wij(old) + alpha(t) * (xik - wij(old))

  • alpha is a learning rate at time t
  • j denotes the winning vector
  • i denotes the ith feature of training example
  • k denotes the kth training example from the input data

After training the SOM network, trained weights are used for clustering new examples. A new example falls in the cluster of winning vectors.

Train the algorithm

  1. Initialize the weights wij random value may be assumed. Initialize the learning rate α.
  2. Calculate squared Euclidean distance.

    D(j) = Σ (wij – xi)^2

    • i=1 to n
    • j=1 to m
  3. Find index J, when D(j) is minimum that will be considered as winning index.

  4. For each j within a specific neighborhood of j and for all i, calculate the new weight.

    wij(new)=wij(old) + α[xi – wij(old)]

  5. Update the learning rule

    α(t+1) = 0.5 * t

  6. Test the Stopping Condition.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay