encog-java-core
encog-java-core copied to clipboard
Backpropagation comments
Consider reformulating the formuation, and coding, including threshold functions, using matrix expressions, instead of all the low level loops. Then the output error function can be more general, depending on more than just the single neuron output. Also, the coding is quite a bit simpler.
For example, feed forward is given by for(iLayer:layers) iLayer.linearOutput = iLayer.weights * iLayer.inputs + iLayer.bias; iLayer.squashedOutput = iLayer.threshold(iLayer.linearOutput); end