How to write neural networks in form of a function???
이전 댓글 표시
I want to use the ann function for optimization using genetic algorithm.. Thanks in advance
채택된 답변
추가 답변 (1개)
Greg Heath
2015년 2월 19일
It is more efficient to have bipolar inputs, tansig hidden nodes and purelin outputs. Bipolar inputs and outputs can be obtained using ZSCORE, MAPMINMAX and/or MAPSTD. Since the corresponding equations are relatively straightforward, the following equations are for normalized quantities:
[ I N ] = size(xn)
[ O N ] = size(tn)
[ O N ] = size(yn)
[ H N ] = size(h)
[ H 1 ] = size(B1)
[ H I ] = size(IW)
[ O 1 ] = size(B2)
[ O H ] = size(LW)
h = B1 + tanh( B1 + IW * xn );
yn = B2 + LW * h;
Hope this helps.
Greg
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!