# W2\_A2\_Tests failed on 1 cell(s)!

**URL:** <https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559>\
**Category:** Neural Networks and Deep Learning\
**Tags:** coursera-platform\
**Created:** [March 24, 2022, 2:30am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559 "2022-03-24T02:30:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Sucharski](https://avatars.discourse-cdn.com/v4/letter/v/a587f6/32.png) [@Victor\_Sucharski](https://community.deeplearning.ai/u/Victor_Sucharski)\
**Post date:** [March 24, 2022, 2:30am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/1 "2022-03-24T02:30:51Z")

</div>

Hello, I’m having trouble with the first assignment of week 2 where I get the error

Tests failed on 1 cell(s)! These tests could be hidden. Please check your submission.

and my grade stays at 88%. I’ve done all of the exercises the way it was asked and I didn’t change the structure or used global variables. How can I debug it?

Thanks

---

<div class="post-metadata">

**Author:** ![Rashmi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rashmi/32/17812_2.png) [@Rashmi](https://community.deeplearning.ai/u/Rashmi)\
**Post date:** [March 24, 2022, 5:50am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/2 "2022-03-24T05:50:32Z")

</div>

Hi @Victor_Sucharski, kindly share the error log(traceback) of your query. Thanks.

---

<div class="post-metadata">

**Author:** ![Victor\_Sucharski](https://avatars.discourse-cdn.com/v4/letter/v/a587f6/32.png) [@Victor\_Sucharski](https://community.deeplearning.ai/u/Victor_Sucharski)\
**Post date:** [March 25, 2022, 1:20am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/3 "2022-03-25T01:20:27Z")

</div>

Hello!

The log I got was:

[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W2A1/Python\_Basics\_with\_Numpy.ipynb’  
[ValidateApp | INFO] Executing notebook with kernel: python3  
Tests failed on 1 cell(s)! These tests could be hidden. Please check your submission.

---

<div class="post-metadata">

**Author:** ![Rashmi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rashmi/32/17812_2.png) [@Rashmi](https://community.deeplearning.ai/u/Rashmi)\
**Post date:** [March 25, 2022, 8:30am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/4 "2022-03-25T08:30:05Z")

</div>

Hi @Victor_Sucharski, did you update the notebook or saved your work before submission? Thanks!

---

<div class="post-metadata">

**Author:** ![ethan852](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@ethan852](https://community.deeplearning.ai/u/ethan852)\
**Post date:** [July 10, 2022, 10:14pm UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/5 "2022-07-10T22:14:58Z")

</div>

I’m having the same issue as well with W2A1

```auto
[ValidateApp | INFO] Validating '/home/jovyan/work/submitted/courseraLearner/W2A1/Python_Basics_with_Numpy.ipynb'
[ValidateApp | INFO] Executing notebook with kernel: python3
Tests failed on 1 cell(s)! These tests could be hidden. Please check your submission.

```

---

<div class="post-metadata">

**Author:** ![Rashmi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rashmi/32/17812_2.png) [@Rashmi](https://community.deeplearning.ai/u/Rashmi)\
**Post date:** [July 11, 2022, 8:57am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/6 "2022-07-11T08:57:15Z")

</div>

Hi, Ethan.

Welcome to the community!

The version of the notebook might have been updated. Please update it and then run all the cells from the beginning.

Here’s the [link](https://www.coursera.org/learn/neural-networks-deep-learning/supplement/iLwon/h-ow-to-refresh-your-workspace)

---

<div class="post-metadata">

**Author:** ![ethan852](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@ethan852](https://community.deeplearning.ai/u/ethan852)\
**Post date:** [July 13, 2022, 3:30am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/7 "2022-07-13T03:30:25Z")

</div>

I followed the instructions but I’m still getting 88/100. Is there a way to know which test is failing?

---

<div class="post-metadata">

**Author:** ![Rashmi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rashmi/32/17812_2.png) [@Rashmi](https://community.deeplearning.ai/u/Rashmi)\
**Post date:** [July 13, 2022, 7:56am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/8 "2022-07-13T07:56:01Z")

</div>

Hi, Ethan.

Did you hard-wired any of the values?

---

<div class="post-metadata">

**Author:** ![Diana\_LaScala-Gruene](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/diana_lascala-gruene/32/28256_2.png) [@Diana\_LaScala-Gruene](https://community.deeplearning.ai/u/Diana_LaScala-Gruene)\
**Post date:** [September 2, 2022, 5:42pm UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/9 "2022-09-02T17:42:17Z")

</div>

Hello,

I’m having this same problem on W2A1. My grade stays at 88% even though all of the tests are passed and I didn’t change the structure of the assignment, global variables, etc. Using the “Validate” button indicates that all tests are passed. I tried updating the notebook and saving before submission with no results. I did not hard-code any values.

Any other thoughts on how this might be resolved?

```auto
[ValidateApp | INFO] Validating '/home/jovyan/work/submitted/courseraLearner/W2A1/Python_Basics_with_Numpy.ipynb'
[ValidateApp | INFO] Executing notebook with kernel: python3
Tests failed on 1 cell(s)! These tests could be hidden. Please check your submission.

```

---

<div class="post-metadata">

**Author:** ![Rashmi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rashmi/32/17812_2.png) [@Rashmi](https://community.deeplearning.ai/u/Rashmi)\
**Post date:** [September 2, 2022, 6:11pm UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/10 "2022-09-02T18:11:10Z")

</div>

Hello, Diana.

Welcome to the community.

As I mentioned in my previous replies, the version of the notebook might have updated. So, please use this brilliant [link](https://community.deeplearning.ai/t/faq-frequently-asked-questions-for-all-dls-courses/74) to solve your query. Further, you can also use this [link](https://www.coursera.org/learn/neural-networks-deep-learning/supplement/iLwon/h-ow-to-refresh-your-workspace) if you face any other related issues.

Thanks.

---

<div class="post-metadata">

**Author:** ![Diana\_LaScala-Gruene](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/diana_lascala-gruene/32/28256_2.png) [@Diana\_LaScala-Gruene](https://community.deeplearning.ai/u/Diana_LaScala-Gruene)\
**Post date:** [September 2, 2022, 6:18pm UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/11 "2022-09-02T18:18:13Z")

</div>

Hi!

As I said in my original post, I’ve already followed those instructions to update the notebook. I’ve also already looked at that link and worked through it. Any other suggestions?

Thanks.

---

<div class="post-metadata">

**Author:** ![Rashmi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rashmi/32/17812_2.png) [@Rashmi](https://community.deeplearning.ai/u/Rashmi)\
**Post date:** [September 2, 2022, 6:32pm UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/12 "2022-09-02T18:32:03Z")

</div>

Diana!

It seems that you have hard-wired any of the values or might have used global variables within the function. Just go through it once. Hope, things would get resolved.

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [September 2, 2022, 6:34pm UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/13 "2022-09-02T18:34:37Z")

</div>

Hi, Diana.

Also please check your DMs for a message from me about possible ways to proceed here.

---

<div class="post-metadata">

**Author:** ![Shubham\_Patel1](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shubham\_Patel1](https://community.deeplearning.ai/u/Shubham_Patel1)\
**Post date:** [October 16, 2022, 9:24am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/14 "2022-10-16T09:24:25Z")

</div>

Hi, I have similar error in W3A1 where I am getting 75/100 since grader is unable to identify back\_prop function. Kindly help.

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [October 17, 2022, 1:16am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/15 "2022-10-17T01:16:36Z")

</div>

Just to close the loop here: I have contacted Shubham by DM and we have figured out the issue here. Somehow some incorrect code got added to one of the function cells.

---

<div class="post-metadata">

**Author:** ![Joao\_Nuno\_Simoes](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/joao_nuno_simoes/32/34067_2.png) [@Joao\_Nuno\_Simoes](https://community.deeplearning.ai/u/Joao_Nuno_Simoes)\
**Post date:** [December 11, 2022, 2:27pm UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/16 "2022-12-11T14:27:58Z")

</div>

Hi,  
So…I’m having exactly the same issue. How do I fix this?  
Cheers.

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [December 12, 2022, 3:50pm UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/17 "2022-12-12T15:50:55Z")

</div>

Just to close the loop on the public thread here, we had a DM conversation so that we could share the code and found that the issue is one instance of hard-coding the parameter values inside a function body so that it happened to match the value passed in the test case. Not sure why the grader has to be mysterious about which function was the issue, but we’ve pointed this out the course staff in the past and apparently it’s not easy to get around the way the grader works in this instance.

---

<div class="post-metadata">

**Author:** ![AndreaG1](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@AndreaG1](https://community.deeplearning.ai/u/AndreaG1)\
**Post date:** [February 4, 2025, 4:56am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/18 "2025-02-04T04:56:37Z")

</div>

Hello,  
I am having the same problem but in coures2 - week1 - gradient checking assignment of Deep learning specialization.  
All graded cells pass the autograder tests but marking comes back as 60/100  
I did not modify any of the non graded cells nor used global variables.  
I tried to start fresh by clicking the question mark button and reboot server but got the same feedback from grader.  
This is the error code:  
[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W1A3/Gradient\_Checking.ipynb’  
[ValidateApp | INFO] Executing notebook with kernel: python3  
Tests failed on 1 cell(s)! These tests could be hidden. Please check your submission.

Can you please help? I am stuck.  
Thank you

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [February 4, 2025, 5:07am UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/19 "2025-02-04T05:07:24Z")

</div>

We’ll need to look at your code, since the grader is not offering any help here. We can’t do that in a public thread, but please check your DMs for a message from me about how to proceed. You can recognize DMs (Direct Messages) in your feed by the “envelope” icon.

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [February 4, 2025, 7:43pm UTC](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559/20 "2025-02-04T19:43:07Z")

</div>

Posting a new reply on a thread that’s been cold for over two years, that’s a brave strategy. Fortunately, Mentor Paul is on the task.

[Next page](https://community.deeplearning.ai/t/w2-a2-tests-failed-on-1-cell-s/111559.md?page=2)
