Update
Catalog of update functions.
AbstractUpdate
Bases: Module
Ensures that all update functions have the same signatures.
Source code in src/somap/update.py
__call__(lr, nbh, input_bu, w_bu)
abstractmethod
SOM Update function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
lr |
Learning rate. |
required | |
nbh |
Neighborhood. |
required | |
input_bu |
Data input. |
required | |
w_bu |
Prototype weights. |
required |
Returns:
Type | Description |
---|---|
The updated prototype weights. |
Source code in src/somap/update.py
CyclicSomUpdate
Bases: AbstractUpdate
Cyclic update functions.
Source code in src/somap/update.py
__call__(lr, nbh, input_bu, w_bu)
Updates the prototype weights where 0 is the same as 1.
Source code in src/somap/update.py
SomUpdate
Bases: AbstractUpdate
Generic update function.
Source code in src/somap/update.py
__call__(lr, nbh, input_bu, w_bu)
Updates the prototype weights.