If you assume you want to minimize mean squared error, the computation of output node gradients can be performed with code like this: double[] oGrads = new double[numOutput]; ...
You can think of a neural network (NN) as a complex function that accepts numeric inputs and generates numeric outputs. The output values for an NN are determined by its internal structure and by the ...