Implementation of kohonen self organizing feature map to map 3-Dimensional date to 2-Dimensional data.
in this specific problem we implement a som to organize and map a 40 * 40 RGB color map
to 2-D map.
We implement this problem in three-phase:
- Phase 1: Considering
Learning-Rate
andNeighbouring-Radius
as constant.(som.py)
- Phase 2: Consider
Learning-Rate
as varying rate.(modified-lr-som.py)
- Phase 3: Consider
Neighbouring-Radius
as varying radius.(modified-nr-som.py)
Install dependencies by running following command:
pip install -r requirements.txt
python som.py
python modified-lr-som.py
python modified-nr-som.py
Result of som.py
is something like this:
Left one showing initial color map and right one is organized color map.
Result of modified-lr-som.py
is something like this:
Left one showing initial color map and right one is organized color map.
Result of modified-nr-som.py
is something like this:
Left one showing initial color map and right one is organized color map.
Amir Rezaei @ameerezae