Class | Ai4r::Som::TwoPhaseLayer |
In: |
lib/ai4r/som/two_phase_layer.rb
|
Parent: | Layer |
responsible for the implementation of the algorithm‘s decays, extends the class Layer. currently overrides the radius and learning rate decay methods of Layer. Has two phases, phase one has a decay in both the learning rate and the radius. The number of epochs for both phases can be passed and the total number of epochs is the sum of epoch for phase one and phase two. In the scond phase, the learning and radius decay is steady, normally set to a small number (ie. 0.01)
you pass to the SOM. Has to be an integer
two different values will be returned, depending on the phase in phase one, the rate will incrementially reduced everytime this method is called on the switch of phases, the learning rate will be reset and the delta_lr (which signals the decay value of the learning rate) is reset as well in phase two, the newly reset delta_lr rate will be used to incrementially reduce the learning rate