JustGlowing / minisom

:red_circle: MiniSom is a minimalistic implementation of the Self Organizing Maps
MIT License
1.43k stars 419 forks source link

Decay function (Question) #156

Closed arnarc closed 1 year ago

arnarc commented 1 year ago

Hello! :)

Can you explain to me what kind of decay function this is? I've only seen linear, inverse of time and power, like the ones stated in http://www.ijmo.org/vol6/504-M08.pdf, formulas 5,6,7

def asymptotic_decay(learning_rate, t, max_iter): """Decay function of the learning process. Parameters

learning_rate : float
    current learning rate.
t : int
    current iteration.
max_iter : int
    maximum number of iterations for the training.
"""
return learning_rate / (1+t/(max_iter/2))
JustGlowing commented 1 year ago

hi @arnarc

This is what the function looks like assuming learing_rate=1/2 and max_iter=100

image