Introduction
Kohonen maps or Self-Organizing Maps (SOM) or Self-Organizing Function Maps (SOFM) is a teacherless machine studying approach used to create a low dimensional (normally two-dimensional) house to signify a multivariate information set whereas preserving the topological construction of the info. For instance, have a dataset of p variables measured in n observations – these could be represented as clusters of observations with the identical values of the variables. These clusters can then be represented as a two-dimensional map, with observations in shut clusters having extra related values than these in distant clusters. This will simplify visualization and evaluation of multivariate information.
![]()
Kohonen maps have been developed by Finnish mathematician Teuvo Kohonen within the Eighties.
Common data
A Kohonen map consists of a grid of neurons which can be related to neighboring neurons. Throughout coaching, enter information is offered to the community and every neuron calculates its similarity to the enter information. The neuron with the best similarity turns into the winner and its weights are adjusted to raised match the enter information.

Over time, neighboring neurons additionally regulate their weights to turn into extra just like the profitable neuron, leading to a topological ordering of neurons within the map. This self-organization course of permits complicated relationships between inputs to be represented in a decrease dimensional house by means of Kohonen maps. This functionality could be very invaluable for information visualization and clustering.
Studying Algorithm
The purpose of the self-organizing map algorithm is to get totally different components of the community to reply in the identical option to sure enter patterns. That is partly motivated by the best way visible, auditory, and different data is processed in sure components of the human mind.
Let’s have a look at how this algorithm works as utilized to mathematical calculations and the MQL5 code.
Algorithm steps
The event of the algorithm consists of 4 major steps:
Step 1 is initialization of weights . Random values can be utilized. Different parameters corresponding to studying price and variety of clusters are additionally initialized on this step.


A self-organizing map is a sort of synthetic neural community that, not like different sorts of synthetic neural networks that study by error, corresponding to again propagation with gradient descent, Kohonen maps use aggressive studying.
In aggressive studying, neurons in a Kohonen map compete towards one another to turn into the “winner”. To do that, the neuron have to be essentially the most just like the enter information.
Within the coaching part, every enter information level is represented on the Kohonen map. The similarity between the enter information and the load vector of every neuron is then calculated. The neuron whose vector is most just like the enter information is set because the winner or the “greatest matching unit” (BMU).
The BMU is chosen based mostly on the smallest Euclidean distance between the enter information and the neuron’s weight vector. The profitable neuron then updates its weight vector, making it extra just like the enter information. The burden replace system used is the Kohonen studying rule, which strikes the load vector of the profitable neuron and its neighboring neurons nearer to the enter information.

Advantages of Kohonen Playing cards
Kohonen maps have an a variety of benefits:
They will seize non-linear relationships between the enter information and the output map, that’s, they will deal with complicated patterns and information buildings.
They will discover patterns on unlabeled information. That’s, they can be utilized when the labeled information is inadequate or troublesome to acquire.
By lowering the dimensionality of the enter information, the computational complexity of subsequent duties corresponding to regression and classification is lowered.
Topological relations between the enter information and the output map are preserved: shut neurons within the map correspond to related areas within the enter house, which may help in information exploration and visualization.
Immune to noise and outliers within the enter information if the noise is simply too giant.

Conclusion
Kohonen maps or self-organizing maps are an progressive method to buying and selling that may assist merchants navigate the markets. Utilizing unsupervised studying, Kohonen maps can establish patterns and buildings in market information, permitting merchants to make knowledgeable selections. Kohonen maps can establish non-linear relationships in information and cluster information into acceptable teams. Nonetheless, when working with them, one ought to concentrate on potential drawbacks corresponding to sensitivity to initialization, lack of formal convergence standards, and so on. Basically, Kohonen Playing cards present glorious ends in buying and selling the markets, I’ve used Matrix and Kohonen Playing cards in my New EA Falcon Rig EA, which you’ll check out in your buying and selling now.