Skip to content

Commit

Permalink
IMPORTANT FIX BackPropOutput gamma [typo]
Browse files Browse the repository at this point in the history
  • Loading branch information
GiorgosXou committed Dec 15, 2020
1 parent 40274c7 commit bd782bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void NeuralNetwork::Layer::BackPropOutput(const float *_expected_, const float *
{

// γ = (Error) * Derivative_of_Sigmoid_Activation_Function
gamma = (outputs[i] - _expected_[i])) * SigmDer(outputs[i]);
gamma = (outputs[i] - _expected_[i]) * SigmDer(outputs[i]);
bias_Delta *= gamma;

for (int j = 0; j < _numberOfInputs; j++)
Expand Down

0 comments on commit bd782bf

Please sign in to comment.