hi every one, i tried to create a neural network that estimate y = x ^ 2 so i create a fitting neural network and give some sample for input and out put. then i tried to come this network to c++. but the result is different i tried to find why this happened. i wrote this command in matlab :
purelin(net.LW{2}*tansig(net.IW{1}*in+net.b{1})+net.b{2})
and the result was 16.0828 for : in = 3
my network has 2 neurons. and other information are :
net.IW : 0.344272596370387 0.344111217766824
net.LW : 31.7635369693519 -31.8082184881063
b : -1.16610230053776 1.16667147712026
b2 : 51.3266249426358
so is any body have any idea why this has happened? thank you
Best Answer