# Gradient Checking Assignment: Week 1

**URL:** <https://community.deeplearning.ai/t/gradient-checking-assignment-week-1/679367>\
**Category:** Improving Deep Neural Networks: Hyperparameter tun\
**Tags:** week-module-1, coursera-platform\
**Created:** [August 18, 2024, 3:10am UTC](https://community.deeplearning.ai/t/gradient-checking-assignment-week-1/679367 "2024-08-18T03:10:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TauNoor](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@TauNoor](https://community.deeplearning.ai/u/TauNoor)\
**Post date:** [August 18, 2024, 3:10am UTC](https://community.deeplearning.ai/t/gradient-checking-assignment-week-1/679367/1 "2024-08-18T03:10:17Z")

</div>

I’m running into an assertion error that prevents me from completing this assignment:

**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**

However, I’ve been looking at this error for a long time now and I still can’t figure what is going wrong. Nothing in my code suggests that I’ve made a miscalculation.

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [August 18, 2024, 3:29am UTC](https://community.deeplearning.ai/t/gradient-checking-assignment-week-1/679367/2 "2024-08-18T03:29:38Z")

</div>

Please click my name and message your notebook as an attachment.

---

<div class="post-metadata">

**Author:** ![TauNoor](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@TauNoor](https://community.deeplearning.ai/u/TauNoor)\
**Post date:** [August 18, 2024, 5:27am UTC](https://community.deeplearning.ai/t/gradient-checking-assignment-week-1/679367/3 "2024-08-18T05:27:38Z")

</div>

Thank you but I was able to figure it out!
