Clear Filters
Clear Filters

Implementation of neural network equation

2 views (last 30 days)
I am getting different output for neural network : O=purelin(W2*logsig(W1i*Xi+B1)+B2) when i implement in matlab and when i do it mathamatically in excel sheet. How to implement the equations of neural netwok. Actually I want to use this equation without using matlab once network is trained and tested.

Accepted Answer

Greg Heath
Greg Heath on 30 Sep 2016
The N I-dimensional "I"nputs are normalized from x to xn The N O-dimensional "O"utput targets are normalized from t to tn
The O-dimensional NORMALIZED targets are obtained from
yn = B2 + LW*logsig( B1 + IW * xn );
The final O-dimensional unnormalized outputs, y, are obtained from yn via the inverse tsetting of the original t to tn normalization of the target.
Hope this helps.
Thank you for formally accepting my answer
Greg
  1 Comment
mohit deshmukh
mohit deshmukh on 12 Apr 2017
How can I get the preprocessing setting of the trained neural network. As I have tried the way it is explained above but still the answer is deviating. I normalised manually.

Sign in to comment.

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!