Class Ai4r::Som::Layer
In: lib/ai4r/som/layer.rb
Parent: Object

responsible for the implementation of the algorithm‘s decays currently has methods for the decay of the radius, influence and learning rate. Has only one phase, which ends after the number of epochs is passed by the Som-class.

Parameters

  • nodes => number of nodes in the SOM (nodes x nodes). Has to be the same number

you pass to the SOM. Has to be an integer

  • radius => the initial radius for the neighborhood
  • epochs => number of epochs the algorithm runs, has to be an integer. By default it is set to 100
  • learning_rate => sets the initial learning rate

Methods

Included Modules

Ai4r::Data::Parameterizable

Public Class methods

Public Instance methods

calculates the influnce decay for a certain distance and the current radius of the epoch

calculates the learning rate decay. uses @time_for_epoch again and same rule applies: @time_for_epoch has to be higher than the number of epochs, otherwise the decay will be - Infinity

calculates the radius decay for the current epoch. Uses @time_for_epoch which has to be higher than the number of epochs, otherwise the decay will be - Infinity

[Validate]