Example I have a trained neural network as following
clear allclc[ x, t ] = simplefit_dataset;net = feedforwardnet;rng('default')net = configure(net,x,t);[net,tr,y,e] = train(net,x,t);
After training finished, weights will be save to net.IW, net.LW, net.b
How does the network calculate output from these weights ?
If output can be calculated as :
y=[ones(Ns,1) tansig([ones(Ns,1) x]*W1')] * W2'
Where Ns is number of training samples.
How can W1 and W2 be formed from net.IW, net.LW and net.b ?
Best Answer