Closed guilhermefarto closed 7 years ago
Hi Guilherme,
Apologies for the late reply. Your suggestion is right, I should have multiplied the error with the sigmoid derivative of the output before backpropagating it.
Thank so much! I shall update my code.
All the best :)
Hello Jie. You're welcome. No problem! :-) All the best,
Hello Jie, how are you doing? I'm trying to build a 3-layer NN and came to your code. But, my results are different from yours. I made some tests and notice one thing that I would like to share with you. You code calculates the error for 3-layer (named
del4
), butdel4
is the error (how much did we miss the target value). I think you need another varible to store the real delta between error for 3-layer (maybe renamedel4
toerr4
) and a new variable 'del4' that will receiveerr4*self.__sigmoid_derivative(output)
.So, could you please check if my following suggestion is correction?
Change this
To this
All the best! :)