create an Evolutionary Neural network ???
이전 댓글 표시
I need to create an Evolutionary Neural network and i used the function
net = patternnet(hn); but i tuned the weights manually but what i need is to have the output value of the neural network when the input passes through the layer until the output node and get the result without any back propagation of the errors neither adjutement of the weights .So how can i do that ? Can i define my training function as input of the patternet(hn,@my_fun) or newff(...,@my_fun) is it possible ? the second idea is to create the neural network with the function patternet or any one else , but what i need here is to stop the neural network after his first ieration which means don't let teh neural network adjusting the weights by itself .
댓글 수: 1
Walter Roberson
2012년 9월 19일
Stopping after one iteration was discussed in your (still-active) question http://www.mathworks.co.uk/matlabcentral/answers/47034-how-can-i-stop-the-neural-network-after-just-one-iteration
채택된 답변
추가 답변 (2개)
Greg Heath
2012년 10월 6일
편집: Greg Heath
2012년 10월 6일
0 개 추천
My combined equations for y and h are equivalent to the sim and net functions when calculating the output
y = sim(net,x);
or
y = net(x);
If you follow my directions above, there is no reason to use the Toolbox functions patternnet, configure, train or sim.
However, once you have converged to a final set of weights using the genetic code above, you can load them into a net using
net = patternnet(H);
net.IW{1,1} = IW;
net.LW{2,1} = LW;
net.b{1} = b1;
net.b{2} = b2;
Otherwise, you will have to load weights into the net at EACH step for EACH set of candidate weights. Obviously, you might be retired before the design converges.
Hope this helps.
댓글 수: 2
Mariem Harmassi
2012년 10월 6일
Greg Heath
2020년 1월 31일
Definitely not. Genetic solutions of ANY problem typically take much much longer.
Greg
카테고리
도움말 센터 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!