AssertionError in Gradient_Checking lab

I do not understand what is wrong with my code in last block.

I have written the following code:

    Moderator Edit: Solution Code Removed

I get the difference = 0.5177906384974295. All previous tests are passed. Please help and sorry for my English

Kindly do not share codes on public post. It is against community guidelines.

Rather share the output you got with the expected output you should get.

As Deepti highlighted, do not share your code in a public thread. For now, I am deleting but be careful next time.

Regarding your query, you have to be cautious when copying code from positive to negative.

1 Like