Coder Social home page Coder Social logo

minsom's Introduction

minSOM

A simple implementation of the self-organizing map. The implementation is based on the description of SOM given by Kohonen in chapter 3 of his book Self-Organizing Maps. This is mostly a personal study on how the algorithm can be implemented and not meant to be a viable way for someone to analyze large datasets.

Model/reference vector initialization

The model vectors for each of the nodes on the map are initialized at random between two arbitrarily chosen values. A more practical initialization method would be to initialize the model components with randomly selected values from the input vector components.

Neighborhood function

The neighborhood used in the map is a simple neighborhood set (aka the bubble function), as described by Kohonen in his book. The initial radius of the neighborhood is set to approximately half the distance between the two corners of the map, and the radius of the neighborhood is decremented by one every 1000 training cycles. Another common neighborhood function is the Gaussian function.

Learning rate factor

The learning rate factor (alpha) is a linearly decreasing function of the training cycle number.

Best-matching node

The best matching node for every input vector is calculated in a common way, by selecting the node that minimizes the Euclidean distance.

The learning process

The input vectors are projected onto the map one by one, and the models of the nodes in the neighborhood around the node with the best-matching model (as well as the node with the best-matching model itself) are smoothed with the input vector.

minsom's People

Contributors

laitom avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.