Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Outputs in Elman Network
Replies: 3   Last Post: Jun 15, 2013 1:08 PM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 Pedro Posts: 2 Registered: 6/1/13
Outputs in Elman Network
Posted: Jun 1, 2013 11:22 AM
 Plain Text Reply

Good morning from Spain,

I'm working with a Elman NN, and I have two problems that I cannot resolve.

1. I'm trying to entablish two outputs in the net, but I can't find the code or the option that can do this. I've prove "net.outputs = 2" o "net.numOutputs = 2", but both either work. I thought that, when I configure the net, maybe if I put two targets, this could change, but I was wrong.

2. The output. This takes a long time giving me headache. I don't know why, the output is really really small if we compare it with the target or even the input. Can it be the weights or the bias? Or maybe the train option?

Input = 1x5000 cell
Target = 1x5000 cell

The code I use to create the net and to configurate it is the next:

net = elmannet(1:2,10);
net = configure(net,input,target);
[Xs,Xi,Ai,Ts] = preparets(net,input,target);

net.divideFcn='divideind';
[trainInd,valInd,testInd] = divideind(5000,1:3000,3001:4000,4001:5000);
net.divideParam.trainInd = trainInd;
net.divideParam.valInd = valInd;
net.divideParam.testInd = testInd;

net = trainlm(net,Xs,Ts,Xi,Ai);
Y = net(Xs,Xi,Ai);
perf = perform(net,Ts,Y);

Date Subject Author
6/1/13 Pedro
6/8/13 Greg Heath
6/12/13 Pedro
6/15/13 Greg Heath

© The Math Forum at NCTM 1994-2018. All Rights Reserved.