小弟刚开始研究类神经网络
大概雏型长这样
http://ppt.cc/~SZQ
输入a及b是个5x1的矩阵
y =
 ̄
1.01823160483784
1.01698161554030
1.01728272049135
1.01628580991177
1.01740624772046
_
y=
1.03005824158027
1.017005825011529
1.01805824554195
1.0215825085077
1.02005824872630
a=
1.01848878462625
1.01871554823079
1.01865847224811
1.01836931339557
1.01862798824214
b=
0.0109879119935511
0.00639989110290620
0.00843166404797391
0.0112367421130021
0.0105584057284075
现在不大会架构出网络
net = network
net.numInputs = 2;
net.numLayers = 2;
net.inputConnect = [1 1; 1 1];
net.layerConnect = [0 0 ; 1 1];
net.outputConnect = [0 1];
net.targetConnect = [0 1];
net.inputs{1}.range = [0 10; 0 10];
net.inputs{2}.range = [-2 2; -2 2; -2 2; -2 2; -2 2];
net.layers{1}.size = 4;
net.layers{1}.transferFcn = 'tansig';
net.layers{1}.initFcn = 'initnw';
net.layers{2}.initFcn = 'initnw';
net.initFcn = 'initlay';
net.performFcn = 'mse';
net.trainFcn = 'trainlm';
输入部份及目标值
不知道怎么写比较妥当
目前执行结果都是
??Error using ==> network.sim at 169
Network contains a zero-delay loop.
不确定权重值该如何连接
烦请各位高手大大帮个忙看是哪边的问题
要如何才能写出来符合雏形的网络