How to generate mathematical model or equation of a Neural netwok converted by gensim o simulink
2 views (last 30 days)
Show older comments
i have designed a custom neural network using commands available in NNTOOL. later i converted the ANN into simulink model using 'gensim'command..
Now i want to get the mathematical relation between the inputs and outputs that contains weight matrices, biases... I don't need a fixed equation with trained weight values.. any generalized relation with matrix names is sufficient.. please help me
0 Comments
Accepted Answer
Greg Heath
on 31 Aug 2013
I don't know about gensim/Simulink. However, the general equation for the standard MLP is
output = repmat(b2,1,N) + LW*tanh(repmat(b1,1,N)+ IW*input)
For outputs confined to [-1,1] or [0,1] just insert into
tansig(x) = tanh(x) = (exp(x)-exp(-x))./(exp(x)+ exp(-x))
or
logsig(x) = 1./(1+exp(-x) = (1/2)*(1+tanh(x))
respectively.
Hope this helps.
Thank you for formally accepting my answer
Greg
0 Comments
More Answers (0)
See Also
Categories
Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!