I am creating a custom Elman network as follows and attempting to train it:
clear variables;p = rand(2,10);t = rand(2,10);net=newelm(p,t,[5,4,2],{'tansig','tansig','purelin'},'trainrp');net.layerConnect(1,1)=0; net.layerConnect(2,2)=0; net.layerConnect(1,3)=1;net=init(net);[net,tr]=train(net,p,t);
However I get the following error message
??? Error using ==> network.train at 129 Network contains a zero-delay loop.
Best Answer