Learning rate
Catalog of learning rate functions.
AbstractLr
Bases: Module
Ensures that all learning rate functions have the same signatures.
Source code in src/somap/learning_rate.py
__call__(t, distances)
abstractmethod
SOM learning rate function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
t |
Integer[Array, '']
|
Current iteration. |
required |
distances |
Float[Array, 'x y']
|
Distances between the prototype weights and the input data. |
required |
Returns:
Type | Description |
---|---|
Float[Array, ''] | Float[Array, 'x y']
|
A scalar ar 2D array containing the learning rate. |
Source code in src/somap/learning_rate.py
ConstantLr
DsomLr
KsomLr
Bases: AbstractLr
Kohonen SOM learning rate function.