MATLAB: Kohonen (example from help does not work)

Deep Learning Toolboxexamplekohonenneural networkweight

Hi all, please I need your help !
example (Kohonen) from help does not work
>> p = [.1 .8 .1 .9; .2 .9 .1 .8];
>> net = newc([0 1; 0 1],2);
>> wts = net.IW{1,1}
>> biases = net.b{1};
>> net.trainParam.epochs = 500;
>> net = train(net,p);
>> a = sim(net,p);
>> ac = vec2ind(a); >> ac
ac =
1 1 1 1
>> wts
wts =
0.5000 0.5000
0.5000 0.5000
My weight did not change. in example
wts =
0.1000 0.1467
0.8474 0.8525
Maybe I'm doing something wrong?

Best Answer

7.10.0 (R.2010b)