The function to minimize in
the output phases is the squared error in the target network summed over
patterns and outputs. Vo,p is the actual output
activation at output o with pattern p. To,p
is the target output activation at output o with pattern p. The
difference between them is squared and summed over all outputs and patterns.