Compute_gradient function in C1_W3_Logisitic_Regression

Hello,

I need help with compute_gradient My implementation is not passing the 2nd test cell.

I reviewed my code, made a different implementation and obtain exactly the same result. Could someone please have a look at my code to help me debug it.

Thank you

Please take a very close look at the “Hint” code sections. The hints are nested, to give increasing amounts of detail.

Please post back if that doesn’t work.

I’m Sorry @TMosh I do not see how my code differ from the hints. I tried to redo it following the hint closely but I get the same error.

Hi @maliky ,

It looks like your edit has not been picked up. Try to a clean run of your code from start.
from the menu bar at the top your notebook:
Kernel → restart & clear all output
cell → run all

Tip:
Always use “File-> Save and Checkpoint” before you submit for grading.