deep-learning-coursera icon indicating copy to clipboard operation
deep-learning-coursera copied to clipboard

fix error in Building your Deep Neural Network - Step by Step IN [18]

Open Freyr-Wings opened this issue 5 years ago • 1 comments

the original code wrongly use sigmoid twice and is weird

Freyr-Wings avatar Jul 30 '18 15:07 Freyr-Wings

error IN [18] please fix it as following dAL = - (np.divide(Y, AL) - np.divide(1 - Y, 1 - AL))

grads["dA" + str(L-1)], grads["dW" + str(L)], grads["db" + str(L)] = linear_activation_backward(dAL, current_cache, "sigmoid")

pangahn avatar Oct 15 '18 05:10 pangahn