I think that means that either your notebook or your public_tests.py file are out of date. Please use the âget a clean copyâ procedure documented on the FAQ Thread. Please read the instructions all the way to the end: you need to delete all the âdot pyâ files to make sure you get new versions of those as well. Then âcopy/pasteâ your completed code back to the fresh copy of the notebook and let us know if that doesnât help.
@NilAtabey: What do you mean by âthe same problemâ? Please show the output of the test which is failing. When you say âthis didnât helpâ, do you mean that you got a fresh copy of both the notebook and the public_tests.py file? Did you read the FAQ Topic all the way to the end where it discusses how to get the âdot pyâ files associated with the assignment replaced?
Well, your dw result is the correct shape, but all the values are completely wrong. So there must be something wrong in your code. Please start by carefully comparing your dw code to the math formulas shown in the instructions.
Also notice that there is more than one test there. The first one is visible in the notebook, but the other is performed in the file public_tests.py and it has a different shape for w and hence dw. But your values that we can see even on the first test are also incorrect: they differ from the âExpected Valuesâ that are shown in the notebook. Notice that your db and cost values are also wrong, so I would be worried that maybe your A value is wrong. I added print statements in my propagate code to show m and A and hereâs what I see when I run that test cell:
m = 3
A = [[0.99979657 0.62245933 0.00273196]]
dw = [[ 0.25071532]
[-0.06604096]]
db = -0.1250040450043965
cost = 0.15900537707692405
m = 4
A = [[0.99849882 0.99979657 0.15446527 0.99966465]]
All tests passed!
Thank you for the feedback. You were right, I forgot the bias term. I saw this same error in this and similar threads and I just assumed it was an issue with refreshing the notebook, but no, it was me!
Glad to hear it came back. Itâs the very last thing that renders when you open the notebook. The other easy thing worth trying when you donât see it is:
Kernel â Restart and Clear Output
Save
Submit (if you see the button)
Thereâs a topic about this general problem on the DLS FAQ thread that also mentions some other points worth being aware of, e.g. that the button only works to grade the âstandardâ copy of the notebook.