Let me warrant this by saying I don't know the first thing about how neural networks actually work, but can someone help me out and explain why the following isn't working?
I added an extra input to the training data for the XOR example:
net.train([{input: [0, 0], output: [0]},
{input: [0, 1], output: [1]},
{input: [1, 0], output: [1]},
{input: [1, 1], output: [0]},
{input: [3, 4], output: [7]}])
But the result of running: var output = net.run([3, 4]); // [0.987]
Is [0.9999823694382457]
which strikes me as odd. Shouldn't it be closer to 7?