How to cluster data with multiple classes with SOM and colour the map

3 ビュー (過去 30 日間)
NCA
NCA 2023 年 4 月 12 日
回答済み: Amey Waghmare 2023 年 4 月 20 日
My data has 1700 rows (samples) and 186 predictors. I have 52 different groups or classes (Grp 1, 2, 5, 23, etc up to 52) to cluster with Self Organising Maps(SOM). I am using the syntax selforgmap in Matlab:
I am not sure how to input the dimension example 10x10, coversteps 200 etc in the syntax above
I also need help with a code to capture all the different classes in the SOM map with various colours if this is possible
Thanks

採用された回答

Amey Waghmare
Amey Waghmare 2023 年 4 月 20 日
Hi,
As per my understanding, you want to cluster a data using ‘Self organizing map’ of dimension 10x10 and cover steps of 200. You can use the following syntax to create the SOM with these properties as follows,
MyMap = selforgmap([10 10], 200, 3, 'hextop', 'linkdist')
This will create a self organizing map with the following properties,
  • dimensions of the SOM: [10 10]
  • coverSteps: 200
  • initNeighbor: 3
  • topologyFcn: ‘hextop’
  • distanceFcn: ‘linkdist’
For more information on ‘selforgmap’, please refer to the following link, https://in.mathworks.com/help/deeplearning/ref/selforgmap.html
You can also use ‘Neural Net Clustering’ app to cluster the data using Self organizing maps. Please refer to the following example which explains the creation of self organizing maps and their visualizations,
You can plot using the functions such as plotsomhits, plotsomnc, plotsomnd, plotsomplanes, plotsompos, and plotsomtop. For more information on these functions, please refer to the documentation link below,
I hope this helps.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by