Skip to content
All library documents

Training and Integrating Self-Organizing Maps for Pattern Clustering

Article MQL5 articles

Summary

The article explains how a Kohonen self-organizing map (SOM) clusters input patterns without labeled targets. Each neuron competes to match an input vector, and the winning neuron and its neighbors adjust their weights. The learning rate and neighborhood radius shrink over training, moving from broad averaging toward more localized tuning. Euclidean distance is presented as the common comparison measure.

It also describes implementation choices intended to reduce dead neurons: selecting training patterns with an evenly distributed pseudo-random generator and initializing neuron weights within the observed range of the data. The software is organized in layered classes for network operations, data, training, and visualization, with examples of loading a trained map and finding its best-matching node. The article is a programming guide rather than a trading study; it gives no market dataset, predictive evaluation, or evidence that SOM clusters improve trading decisions. Its practical examples are tied to an MQL5 implementation and a limited set of patterns.

Key ideas

  • A SOM assigns each input vector to the neuron whose weight vector is most similar.
  • Training adjusts the winner and nearby neurons, with the learning rate and neighborhood radius declining over time.
  • Initializing weights within the observed input range can help prevent neurons from remaining far from all training patterns.
  • More evenly distributed random pattern selection is proposed to improve coverage of the training set.
  • The article presents software architecture and implementation examples, not evidence of trading performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.