How to write neural networks in form of a function???

 Respuesta aceptada

Greg Heath
Greg Heath el 7 de Abr. de 2014
h = tanh(b1 + IW*x);
y = b2 + LW*h;

2 comentarios

Bharath
Bharath el 8 de Abr. de 2014
I am getting error as : Inner matrix dimensions must agree
Basically I want to do multi objective optimization of 2 ann functions in ga. My neural network for both is Multi Layer Feed Forward with 16 hidden neurons, 1 hidden layer, transfer fn's : logsig, purelin
Greg Heath
Greg Heath el 11 de Abr. de 2014
I cannot help with code I cannot see.
I apologize for not being a mind reader.

Iniciar sesión para comentar.

Más respuestas (1)

Greg Heath
Greg Heath el 19 de Feb. de 2015
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

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 7 de Abr. de 2014

Respondida:

el 19 de Feb. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by