How to train data using SOM and map the resukts on data
    4 次查看(过去 30 天)
  
       显示 更早的评论
    
Pleases help me. I am stuck in how to train data using SOM and map the results on data.  I am using  the data file, having dimension 100 by 30. First, I want to apply som to train it and them classify the classes.Please help me to solve this problem. Its very important and urgent also.
4 个评论
回答(2 个)
  KSSV
      
      
 2019-4-12
        Hope this demo might help you: 
X = rands(2,1000);    % some random input
plot(X(1,:),X(2,:),'+r')
net = selforgmap([2 2]);     % divide into four groups 
net = configure(net,X);
plotsompos(net)
net.trainParam.epochs = 1;
net = train(net,X);
plotsompos(net)
%  Groups 
Y = vec2ind(net(X)) ; 
scatter(X(1,:),X(2,:),30,Y,'filled')
% Testing 
x = [0.5;0.3];
y = vec2ind(net(x)) % the give input belongs to this group
7 个评论
  Adam
      
      
 2019-4-15
				Why train for 1 epoch only?  I would think you'd need a few hundred, especially with coverSteps explicitly set at 100
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


