I have a problem with exercise 6 of week 3 assignment
All the tests prior to this one passed, and I believe I have the right equations to calculate the derivatives but I’m getting an error that the value of dW1 is wrong.
I retrieve W1 and W2 using parameters ["…"] and similar for A1 and A2 using cache.
I then do the calculations below but I’m getting the error wrong value of dW1
Hi, @Mohamed_Othman. Please note that you are not allowed to post your solution code on Discourse or any other public forum. It is a violation of the course honor code. You should instead post a snapshot of the “traceback”, i.e. the error log printed to the screen which indicates how you would trace back (yup) through the code and the function calls to the likely source of your error. Learning to do this is an integral part of doing ML/AI.
Thanks, @Mohamed_Othman. Tracebacks are not created equally! This one is on the disappointing side because there is not a single call to another function in backward_propagation(...). Your code threw an AssertionError from within the backward_propagation_test(...) function which was imported in the first cell via from public_tests import *.
You can view all of the functions in the public_test.py model in Jupyter with: “File → Open …” and then click on public_tests.py. If you inspect this code, you will see that your dW's and db's passed the “type” and “shape” tests. The dW1 array is producing the wrong values. Good new and bad news. Your dimensions are correct, but the values are not. Please recheck your expressions.