My notebook showed that all test passed for every step. However, after submission, it showed it is not passed (50/100). The grader output is showed in below. Is there a problem with the submission process?
[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W4A2/Deep Neural Network - Application.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
[ValidateApp | ERROR] Timeout waiting for execute reply (30s).
[ValidateApp | ERROR] Interrupting kernel
[ValidateApp | ERROR] Timeout waiting for execute reply (30s).
[ValidateApp | ERROR] Interrupting kernel
Tests failed on 1 cell(s)! These tests could be hidden. Please check your submission.
Hi @yhuang if you mean the presence ERROR in the grader output I think these are not to worry too much, I have checked the grader output in my notebook and they are also present despite the 100/100 result. Maybe there is something in the notebook that might have some problems. Maybe you can check the following thing. The grader runs the function of the notebook in a different environment and one common issue arise if you have declared global variables in some cells, outside the functions in other cells. These global variables eventually present would not be seen by the grader and therefore the grader would not be able to run the function code. Suggestion is to check for these global variables and remove them. Hope this helps
Thank you for your reply. I checked again and didn’t see global variables. Of course there could be typos/bugs that I missed.
Is it possible the problem is in assignment 1 instead of assignment 2? Functions used in assignment 2 were defined in assignment 1. However, assignment 1 passed submission with 100/100.
Hi @yhuang I don’t think the element in the assignment 1 influence your result in assignment 2. For example in the context of assignment 2 the function you mention are in dnn_app_utils_v3.py. Maybe there is some problems in assignment 2 which are no intercepted by the local unit testing code but appears in the grader checks
I reloaded the page and re-wrote the code. Now it passed.
The only difference on the code is that in the 2-layer part of the new code, I used “learning_rate” instead of “learning_rate = 0.0075” when calling “update_parameters”. I don’t think my previous problem is related to it though.