Skip to content

Commit

Permalink
Updated documentation of sigma decay
Browse files Browse the repository at this point in the history
  • Loading branch information
JustGlowing committed Apr 6, 2024
1 parent a433048 commit 9882f55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion minisom.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __init__(self, x, y, input_len, sigma=1.0, learning_rate=0.5,
where T is #num_iteration/2)
decay_function : function (default=asymptotic_decay)
Function that reduces learning_rate and sigma at each iteration
Function that reduces learning_rate at each iteration
the default function is:
learning_rate / (1+t/(max_iterarations/2))
Expand Down Expand Up @@ -169,6 +169,9 @@ def euclidean(x, w):
random_seed : int, optional (default=None)
Random seed to use.
sigma_decay_function : function (default=asymptotic_decay)
Function that reduces sigma at each iteration.
"""
if sigma > sqrt(x*x + y*y):
warn('Warning: sigma might be too high' +
Expand Down

0 comments on commit 9882f55

Please sign in to comment.