I am kind of stuck here. All the previous assignment function for this week have passed. This assignment UNQ_C5 GRADED FUNCTION: gradient_descent, just involves calling the functions that have already been tested so I am not sure where to start debugging this function when the unit tests fail.:
I get the following results on running the unit tests:
9 Tests passed
7 Tests failed
The expected values of w1, w2, b1 and b2 are not as expected in cases of failures. The difference is values are very minutely different, similar to the difference in the basic test.
Also, my outputs for the basic test are slightly off, but the note says that slight difference in numbers is expected:
Clipping for L1 values has already been provided in the notebook.
I should have been more clear in my statement: I had to remove relu from grad_b1 calculations to pass the unit tests. Either the lecture slides have incorrect formula for grad_b1 or the unit tests are incorrect
Sorry about posting the code. I thought posting incorrect code was not an issue. Posting correct solutions was prohibited. I’ll take care of it in future. Are we allowed to post incorrect code?
Please do not. If a mentor needs to see your code, we’ll contact you with instructions.
You can post screen capture images of any error messages or asserts. That’s usually enough to diagnose the issue.