I've got this question that I couldn't answer through email, so I am posting it here:
I just tried your Back Propagation Scale class from PHP Classes, and I found it very interesting, but I have a problem with it. In your Run function the 2nd input parameter is the testDataX array containing the test datas, but as I inspected, this information you never use to calculate anything, but for to write the result table.
This is important for me, because I tried to extend your class with a new function, which can makes a calculation with a previously trained network.
At the first time I thought, that it would be enough, if I extract your Run function’s end (after the network’s backpropagation) to my new function with a testData array.
But I have failed, the calculation’s result is always the same: the first result elements from the training datas. For example, if I first time train the network with the multiplication matrix (as in your original class), and I give some test data to my function, the results I got is _independent_ from the input data, always 1, 2, 3, etc… After some hours of debug I cannot find, why L
The answers is always (about) 1, 2, 3, independently the input array’s values…
Thank You and Best Regards:
I will try to answer to these questions.
The testDataX array, it is used to do some calculation it does the fast forwarding in the network, whereas the data array it is used to do the back propagation, in your function Calculate where do you train your data?
It seems that you are fast forwarding data that hasn't been previously back propagated.