필터 지우기
필터 지우기

How to visualize Umatrix in SOM?

조회 수: 5 (최근 30일)
AS
AS 2020년 2월 15일
Hi, I am learning SOM for Umatrix representation. When I plot Umatrix, I am getting reverse representation of it. Higher color values showing Class and Lower values are showing boundary. I want to make it reverse. I am attaching the figure, where the higher values in colorbar representing separate class and dark blue is showing separation between classes. I want to get reverse, so that lower values will show class.
D=data;
D1 = som_normalize(D, 'range');
smI=som_lininit(D1, 'msize',[17 17], 'lattice', 'rect', 'shape', 'sheet');
smR=som_batchtrain(smI, D, 'radius',[7 2], 'trainlen',2500, 'neigh', 'gaussian');
sMap=som_batchtrain(smR, D1, 'radius',[2 2], 'trainlen', 1500, 'neigh', 'gaussian');
colormap(jet)
caxis([1 5])
Y=som_show(sMap, 'umat', 'all');
X=flipud(Y);
M=sMap.codebook;
Is there anybody can help me fix this?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by