|
"Greg Heath" <heath@alumni.brown.edu> wrote in message <jsd1ga$i71$1@newscl01ah.mathworks.com>...
> "faiza khan" <faizakhan797@gmail.com> wrote in message <jscnqu$2nu$1@newscl01ah.mathworks.com>...
> > i tried ur code, when i simulate the network.it gives the exact targets as output.
>
> Good.
>
> Next time use Heath instead of Health
>
> Greg
hello
and ya sorry about the name ..
inputs = inp';
%target=ind2vec(classes);
net = newff(inputs,target,24);
net.layers{1}.transferFcn = 'tansig';
net.layers{2}.transferFcn='logsig';
net.trainFcn = 'trainrp';
net = train(net,inputs,target);
end
it gives this output
(1,1) 0.5000
(2,1) 0.5000
(3,1) 0.5000
(4,1) 0.5000
(5,1) 0.5000
(6,1) 0.5000
(7,1) 0.5000
(8,1) 0.5000
(9,1) 0.5000
(10,1) 0.5000
(1,2) 0.5000
(2,2) 0.5000
(3,2) 0.5000
(4,2) 0.5000
(5,2) 0.5000
(6,2) 0.5000
(7,2) 0.5000
(8,2) 0.5000
(9,2) 0.5000
(10,2) 0.5000
(1,3) 0.5000
(2,3) 0.5000
(3,3) 0.5000
(4,3) 0.5000
(5,3) 0.5000
(6,3) 0.5000
(7,3) 0.5000
(8,3) 0.5000
(9,3) 0.5000
(10,3) 0.5000
(1,4) 0.5000
(2,4) 0.5000
(3,4) 0.5000
(4,4) 0.5000
(5,4) 0.5000
(6,4) 0.5000
(7,4) 0.5000
(8,4) 0.5000
(9,4) 0.5000
(10,4) 0.5000
(1,5) 0.5000
(2,5) 0.5000
(3,5) 0.5000
(4,5) 0.5000
(5,5) 0.5000
(6,5) 0.5000
(7,5) 0.5000
(8,5) 0.5000
(9,5) 0.5000
(10,5) 0.5000
upto
(10,360) 0.5000
please help me solve this problem. it wont train.
|