void Neuron::calculateHiddenGradients(const Layer &nextLayer) { double dow= sumDOW(nextLayer); gradient = dow * Neuron::transferFunctionTanHDerivative(outputValue); }
void Neuron::calcHiddenGradients( const Layer &nextLayer ) { double dow = sumDOW( nextLayer ); _gradient = dow * Neuron::transfertFunctionDerivative( _outputVal ); }