I’m facing grading issues with the last assignment in C2, week4.
All unit tests are passed and moreover even for the grader the ex4-backprop was passed too but for ex5-gradient decent the unit-test and the grader failed.
When take a look into the results all 4 variables, W1,W2,b1 and b2 are affected. Looking to the values it often looks like some rounding issue (Wrong output values for b1 vector. Expected: [[0.32014249]…Got: [[0.32017801]
I’ve searched through other threads as well but did not find any similar problem so far.
For ex5 i think there is almost no hard-coding possible which is a common error.
Can someone give me a hint?
Many thanks in advance!
There is a comment underneath stating that " numbers may differ a bit depending on which version of Python you’re using."
I get the exact same answers & the python version is 3.7.6.
Also if you want to cross check, here are the values (partially) of z, h, yhat, and grad_W1 for the first batch when calling gradient_decent from the # test your function cell:
checked the values again. Sure, i got different values but in my newby eye’s they are only slightly away from the expected ones. Can’t find any fatal error.
There is no pressure, the assignment is passed anyway but well 100 would be better than 80
Can you give me a hint what to check next?
When @Anna_Kay shared that screenshot of expected output, what you could have done added #print statement to the values you are getting same match, or add print statement to each step and check when then value starts not match to the Anna’s shared image value, so that would help you debug the incorrect code.
With that being said, please make sure you are working on latest version of the assignment notebook as per the python version and log shared by you. You can check this by clicking on and Log to know if you are working on older version or the latest version with the Update Log option.