@@ -75,10 +75,10 @@ class MiniSom(object):
75
75
Y_HEX_CONV_FACTOR = (3.0 / 2.0 ) / sqrt (3 )
76
76
77
77
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 ' ,
79
79
neighborhood_function = 'gaussian' , topology = 'rectangular' ,
80
80
activation_distance = 'euclidean' , random_seed = None ,
81
- sigma_decay_function = 'inverse_decay_to_one ' ):
81
+ sigma_decay_function = 'asymptotic_decay ' ):
82
82
"""Initializes a Self Organizing Maps.
83
83
84
84
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,
115
115
learning_rate(t) = learning_rate / (1 + t * (100 / max_iter))
116
116
117
117
decay_function : string or callable, optional
118
- (default='inverse_decay_to_zero ')
118
+ (default='asymptotic_decay ')
119
119
Function that reduces learning_rate at each iteration.
120
120
Possible values: 'inverse_decay_to_zero', 'linear_decay_to_zero',
121
121
'asymptotic_decay' or callable
@@ -152,7 +152,7 @@ def euclidean(x, w):
152
152
Random seed to use.
153
153
154
154
sigma_decay_function : string, optional
155
- (default='inverse_decay_to_one ')
155
+ (default='asymptotic_decay ')
156
156
Function that reduces sigma at each iteration.
157
157
Possible values: 'inverse_decay_to_one', 'linear_decay_to_one',
158
158
'asymptotic_decay'
0 commit comments