Formula for two layer FFNN

6 views (last 30 days)
Matthew Clark
Matthew Clark on 22 Mar 2019
Answered: Ayoub Azzouzi on 17 Jun 2019
y=b2+LW2_1*tansig(b1+IW1_1*x1); %for one hidden layer
what will be my formula look like if I use 2hidden layers 20 15 neurons?

Accepted Answer

Greg Heath
Greg Heath on 23 Mar 2019
y1 = b1 + IW1 * x
y2 = b2 + LW2 * tanh( y1 )
y3 = b3 + LW3 * tanh( y2 )
= b3 + LW3 * tanh( b2 + LW2 * tanh( b1 + IW1 * x ) )
Hope this helps
Thank you for formally accepting my answer
Greg
  1 Comment
Matthew Clark
Matthew Clark on 23 Mar 2019
Edited: Matthew Clark on 23 Mar 2019
Thanks prof. Heath,
I am using FFBP NN for my electricity load prediction problem, I have 21 inputs which are normalized to fit the range -0.9 and 0.9,using 2 hidden layers with 20 and 15 nodes, using tansing transfer function in both layers and trainlm algorithm with 0.01 learning rate. My target data is two year historical load. I am getting quite satisfying results on new data. Should I something improve ? I know maybe it is quite weird question from me but I am pretty new to NN.
Regards

Sign in to comment.

More Answers (1)

Ayoub Azzouzi
Ayoub Azzouzi on 17 Jun 2019
Hi there,
I need your help please!
I want creat neural network model for rotor flux estimation, can you help me please ?
4084671-fig-3-source-large.gif
Regrads!

Community Treasure Hunt

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

Start Hunting!