Learning the XOR function
Success in 624 training rounds!
Result
Testset 0; expected output = (-1) output from neural network = (-0.98705116994768)
Testset 1; expected output = (1) output from neural network = (0.99335508354561)
Testset 2; expected output = (1) output from neural network = (0.98991085116364)
Testset 3; expected output = (-1) output from neural network = (-0.99076829865114)
Playing around...
The following is to show how changing the momentum & learning rate,
in combination with the number of rounds and the maximum allowable error, can
lead to wildly differing results. To obtain the best results for your
situation, play around with these numbers until you find the one that works
best for you.
The values displayed here are chosen randomly, so you can reload
the page to see another set of values...
Learning rate 0.25, momentum 0.4 @ (500 rounds, max sq. error 0.001)
Round 1: No success...
Round 2: No success...
Learning rate 0.1, momentum 0.8 @ (2000 rounds, max sq. error 0.01)
Success in 846 training rounds!
Testset 0; expected output = (-1) output from neural network = (-0.99168916670568)
Testset 1; expected output = (1) output from neural network = (0.99102136147385)
Testset 2; expected output = (1) output from neural network = (0.99080645825283)
Testset 3; expected output = (-1) output from neural network = (-0.98712523458273)
Learning rate 1, momentum 0.8 @ (100 rounds, max sq. error 0.001)
Round 1: No success...
Round 2: No success...
Learning rate 0.75, momentum 0.4 @ (100 rounds, max sq. error 0.1)
Round 1: No success...
Round 2: No success...
Learning rate 1, momentum 0.6 @ (500 rounds, max sq. error 0.1)
Round 1: No success...
Round 2: No success...
Learning rate 0.5, momentum 0.8 @ (100 rounds, max sq. error 0.05)
Round 1: No success...
Round 2: No success...
Learning rate 0.5, momentum 0.6 @ (500 rounds, max sq. error 0.01)
Success in 170 training rounds!
Testset 0; expected output = (-1) output from neural network = (-0.99331742719406)
Testset 1; expected output = (1) output from neural network = (0.98996505693673)
Testset 2; expected output = (1) output from neural network = (0.99230009097682)
Testset 3; expected output = (-1) output from neural network = (-0.98623928073667)
Learning rate 1, momentum 0.8 @ (2000 rounds, max sq. error 0.05)
Round 1: No success...
Round 2: No success...
Learning rate 0.75, momentum 0.4 @ (100 rounds, max sq. error 0.01)
Success in 68 training rounds!
Testset 0; expected output = (-1) output from neural network = (-0.99022110206805)
Testset 1; expected output = (1) output from neural network = (0.99661079531162)
Testset 2; expected output = (1) output from neural network = (0.98696359429449)
Testset 3; expected output = (-1) output from neural network = (-0.98948930066446)
Learning rate 0.1, momentum 0.4 @ (100 rounds, max sq. error 0.001)
Round 1: No success...
Round 2: No success...