Advertisement

basic neural network

Started by September 23, 2011 01:48 AM
12 comments, last by AlanMcCormick 13 years, 2 months ago

This tutorial may help you: http://www.codeproje...recipes/BP.aspx


the formulas are same as i wrote here\in my program:S
Your output layer error seems different. (I didn't check the other formulas).
Did you try to run the tutorial's code?
Advertisement
yea,ive just forget to write a line where :
[color="#1C2837"][color="#00008B"]foreach[color="#000000"] neural [color="#00008B"]in[color="#000000"] the nextlayer
sum[color="#000000"]+=[color="#000000"]neural[color="#000000"].[color="#000000"]value[color="#000000"]*[color="#000000"]currentneural[color="#000000"].[color="#000000"]weights[color="#000000"][[color="#000000"]neural[color="#000000"]];
[color="#1C2837"][color="#000000"]
[color="#1C2837"][color="#000000"]myerror=sum*myoutput*(1-myoutput);
[color="#1C2837"][color="#000000"]
[color="#1C2837"][color="#000000"]its seems like when im training the normal 4 examples,
each 2 example with different output just contradict each other(change the weights in opposite directions) :S

[color="#1C2837"][color="#000000"]
I 'm not sure about your code either, but have you tried reducing your learning rate to something much smaller? 0.1, 0.05 etc. If your learning rate is too high it may not converge

This topic is closed to new replies.

Advertisement