Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I create the neural network for xor operation with guidance of Jeff Heaton's book "Introduction to Neural Network in Java".I am sure about there is no mistake in coding because it is true for books samples.Also it changes weights correctly when I gave same input(for example only input=(0,1) output=1) for thousands times. But when I give more than one input(all 4 possibilities for xor operation) for thousands of cycles the outputs are very close to each other.

My output for 100,000 cyles of training for each input;
input      actual output           ideal output
------     ------------------      -------------
0 , 0  => 0.003772846137554265           0
1 , 0  => 0.6224007788208237             1
0 , 1  => 0.6224007779452603             1
1 , 1  => 0.6224593302953872             0


Does anybody know why the output numbers are closing each other (it goes around 0,62) but it is true for first input pair? Can you help me?
Posted
Updated 6-Jan-12 19:51pm
v2
Comments
Richard MacCutchan 7-Jan-12 5:19am    
Without seeing some of your code it is unlikely that anyone can guess what you are doing wrong. You might also like to explain how you use double values in xor operations.
TorstenH. 9-Jan-12 3:06am    
Check your calculations. There must be a false value in there. All values should be more specific.
Nagy Vilmos 9-Jan-12 4:56am    
#Umm mani umm shar#
Buda says you must "read the runes to see the path". I wonder what he could mean by that?
Arndt Faulhaber 12-Jan-12 5:19am    
How do you do the training exactly (pls be more specific)?
An I correct that you have a Network of neurons, since if I remember correctly, a single neuron cannot discriminate the XOR function (also known as XOR-Problem...)

PS: And give a short overview of your ANN.

Cheers, Arndt

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900