Week 1 Gradient Checking

I have seen all posts and cannot find the solution for my code. I have used np.linalg.norm to do it. I wonder the problem is about the index i, but I have tried many combinations also. Please help! Thanks.

Fixed by @fireping668.

In gradient_check_n, you’re comparing vectors, not scalars. Take that in mind when computing numerator and denominator.

Good luck with the rest of the course :slight_smile:

1 Like