matlabvalidationtraining-datatest-datasom

Self Organizing Map to split datasets


I am trying to use Self Organizing Map to split datasets into training, validation and test sets. I created the SOM model,

dimension1 = 10;
dimension2 = 10;
net = selforgmap([dimension1 dimension2],100,3,'hextop','linkdist');
[net, tr] = train(net, cancer);

however when I am trying to partition the dataset using

net.divideParam.trainRatio = 0.6;
net.divideParam.valRatio = 0.2;
net.divideParam.testRatio = 0.2;

I am getting an error

"Error in network/subsasgn>network_subsasgn (line 456) if isempty(err), [net,err]=setDivideParam(net,divideParam); end Error in network/subsasgn (line 10) net = network_subsasgn(net,subscripts,v,netname);"

Could someone please provide me some guidelines how split datasets using SOM in Matlab?

Code Image


Solution

  • You can not use trainRatio, valRatio and testRatio in SOM.

    These can be used in other neural networks such as MLP.