Skip to content

Commit 1ebef75

Browse files
authored
Update minisom.py
1 parent 95b808c commit 1ebef75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

minisom.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ class MiniSom(object):
7575
Y_HEX_CONV_FACTOR = (3.0 / 2.0) / sqrt(3)
7676

7777
def __init__(self, x, y, input_len, sigma=1, learning_rate=0.5,
78-
decay_function='inverse_decay_to_zero',
78+
decay_function='asymptotic_decay',
7979
neighborhood_function='gaussian', topology='rectangular',
8080
activation_distance='euclidean', random_seed=None,
81-
sigma_decay_function='inverse_decay_to_one'):
81+
sigma_decay_function='asymptotic_decay'):
8282
"""Initializes a Self Organizing Maps.
8383
8484
A rule of thumb to set the size of the grid for a dimensionality
@@ -115,7 +115,7 @@ def __init__(self, x, y, input_len, sigma=1, learning_rate=0.5,
115115
learning_rate(t) = learning_rate / (1 + t * (100 / max_iter))
116116
117117
decay_function : string or callable, optional
118-
(default='inverse_decay_to_zero')
118+
(default='asymptotic_decay')
119119
Function that reduces learning_rate at each iteration.
120120
Possible values: 'inverse_decay_to_zero', 'linear_decay_to_zero',
121121
'asymptotic_decay' or callable
@@ -152,7 +152,7 @@ def euclidean(x, w):
152152
Random seed to use.
153153
154154
sigma_decay_function : string, optional
155-
(default='inverse_decay_to_one')
155+
(default='asymptotic_decay')
156156
Function that reduces sigma at each iteration.
157157
Possible values: 'inverse_decay_to_one', 'linear_decay_to_one',
158158
'asymptotic_decay'

0 commit comments

Comments
 (0)