# Week4 - Grader scores 90/100 but all tests pass in my Notebook

**URL:** <https://community.deeplearning.ai/t/week4-grader-scores-90-100-but-all-tests-pass-in-my-notebook/12812>\
**Category:** Neural Networks and Deep Learning\
**Tags:** coursera-platform\
**Created:** [June 8, 2021, 4:02pm UTC](https://community.deeplearning.ai/t/week4-grader-scores-90-100-but-all-tests-pass-in-my-notebook/12812 "2021-06-08T16:02:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![frippe75](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@frippe75](https://community.deeplearning.ai/u/frippe75)\
**Post date:** [June 8, 2021, 4:02pm UTC](https://community.deeplearning.ai/t/week4-grader-scores-90-100-but-all-tests-pass-in-my-notebook/12812/1 "2021-06-08T16:02:56Z")

</div>

Building\_your\_Deep\_Neural\_Network\_Step\_by\_Step

 ![image](https://global.discourse-cdn.com/dlai/original/2X/d/ddc312067a9854fc6337fa26f75f50f19eb4f938.png)

---

<div class="post-metadata">

**Author:** ![frippe75](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@frippe75](https://community.deeplearning.ai/u/frippe75)\
**Post date:** [June 8, 2021, 4:04pm UTC](https://community.deeplearning.ai/t/week4-grader-scores-90-100-but-all-tests-pass-in-my-notebook/12812/2 "2021-06-08T16:04:21Z")

</div>

![image](https://global.discourse-cdn.com/dlai/original/2X/9/91a50dbd7da46bfa49797e76dfb80fd88c037642.png)

10 occurances of “All tests passed”. Should there be more tests??

---

<div class="post-metadata">

**Author:** ![frippe75](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@frippe75](https://community.deeplearning.ai/u/frippe75)\
**Post date:** [June 8, 2021, 4:05pm UTC](https://community.deeplearning.ai/t/week4-grader-scores-90-100-but-all-tests-pass-in-my-notebook/12812/3 "2021-06-08T16:05:33Z")

</div>

![image](https://global.discourse-cdn.com/dlai/original/2X/7/7f0907c426d8f4d27b0c90f92f9ed8bc53575db1.png)

Tried to re-score it…

---

<div class="post-metadata">

**Author:** ![frippe75](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@frippe75](https://community.deeplearning.ai/u/frippe75)\
**Post date:** [June 9, 2021, 6:35am UTC](https://community.deeplearning.ai/t/week4-grader-scores-90-100-but-all-tests-pass-in-my-notebook/12812/4 "2021-06-09T06:35:35Z")

</div>

I completed the following and last programming task and the full course got graded and a certificate was created. I was aiming for 100% so this invalid grading ruined my overall score. Would REALLY like for somebody to take a look at this. Thanks!

---

<div class="post-metadata">

**Author:** ![Mubsi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/mubsi/32/94983_2.png) [@Mubsi](https://community.deeplearning.ai/u/Mubsi)\
**Post date:** [June 9, 2021, 6:42am UTC](https://community.deeplearning.ai/t/week4-grader-scores-90-100-but-all-tests-pass-in-my-notebook/12812/5 "2021-06-09T06:42:06Z")

</div>

Hey @frippe75 , this is not an “invalid” grading. You have probably made a mistake somewhere which the unit tests within the assignment didn’t pick. It could be because you might be passing global variables, hard coded values, which work within the assignment, but fail the autograder unit tests.

Kindly DM me your notebook and I’ll take a look.

---

<div class="post-metadata">

**Author:** ![Mubsi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/mubsi/32/94983_2.png) [@Mubsi](https://community.deeplearning.ai/u/Mubsi)\
**Post date:** [June 9, 2021, 7:19am UTC](https://community.deeplearning.ai/t/week4-grader-scores-90-100-but-all-tests-pass-in-my-notebook/12812/6 "2021-06-09T07:19:20Z")

</div>

As advised and looking at your notebook, you are passing hardcoded values in the assignment. Kindly make your code generic by following the instructions in the assignment.
