# Course-2 : Week -1 Assignments, Assignment: Gradient Checking

**URL:** <https://dlai.staged-by-discourse.com/t/course-2-week-1-assignments-assignment-gradient-checking/25053>\
**Category:** Improving Deep Neural Networks: Hyperparameter tun\
**Tags:** coursera-platform\
**Created:** [August 4, 2021, 6:00am UTC](https://dlai.staged-by-discourse.com/t/course-2-week-1-assignments-assignment-gradient-checking/25053 "2021-08-04T06:00:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![surya1](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@surya1](https://dlai.staged-by-discourse.com/u/surya1)\
**Post date:** [August 4, 2021, 6:00am UTC](https://dlai.staged-by-discourse.com/t/course-2-week-1-assignments-assignment-gradient-checking/25053/1 "2021-08-04T06:00:51Z")

</div>

I am getting following error,  
Request to let me know what could be problem.

There is a mistake in the backward propagation! difference = 0.5177906384974295  
AssertionError Traceback (most recent call last)  
in  
6 expected\_values = [0.2850931567761623, 1.1890913024229996e-07]  
7 assert not(type(difference) == np.ndarray), “You are not using np.linalg.norm for numerator or denominator”  
----\> 8 assert np.any(np.isclose(difference, expected\_values)), “Wrong value. It is not one of the expected values”

AssertionError: Wrong value. It is not one of the expected values

In my code i am using np.linalg.norm() function, but still getting above error

[code removed - moderator]

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://dlai.staged-by-discourse.com/u/balaji.ambresh)\
**Post date:** [April 22, 2022, 9:04pm UTC](https://dlai.staged-by-discourse.com/t/course-2-week-1-assignments-assignment-gradient-checking/25053/2 "2022-04-22T21:04:33Z")

</div>

Please click my name and message your notebook as an attachment along with a link to this post.
