Course1 Week4,test all passed but grade 0/ 100

The error shown as below , please someone help me out with this error.

[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 2 cell(s)! These tests could be hidden. Please check your submission.

Hi @samdovon, I would try again, another student reported that Coursera was down for maintenance shortly so maybe the submission / grading services were down at that moment. If the problem still persists please let us know.


I have summited for several time still cant grade !!

@samdovon, Sorry, but what that message means is just that the grader does not accept your solutions. It is normal to get the timeout messages. Here’s what a successful submission to the grader looks like for this exercise:

You can see that I got the same messages about the timeouts and “Interrupting the kernel”, but I still got 100%. So this means that there is something wrong with your solutions. You will need to look carefully at your code and your test results in the notebook: are you sure everything agrees? I grant you that it would be better if the grader said which cells it was rejecting, but it rejects 2 and there are only 2 graded cells in this notebook. I think this means that both your two_layer_model and L_layer_model code are incorrect.

Some things to check: Make sure that you don’t “hand import” any of your functions from the previous Step by Step exercise. Make sure you are not “hard-coding” any of the parameters in the body of your functions: just take the arguments as they are passed.

One thing I can see is that you “hard-code” the learning rate parameter on the call from two_layer_model to update_parameters. That is exactly the type of mistake I suggested you look for.

You make the same mistake in L_layer_model.

Now that we have a diagnosis, please remove the attached file with your code.

In the interests of full scientific accuracy: I ran the experiment of making the two mistakes that I documented above in my own notebook. The grader gives me 0 points and exactly the same output that you show. So I think this is the problem.

[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
Success! Your notebook passes all the tests.

But Grade always 0/100
Any solution ??

My guess is that means there is something structurally damaged about your notebook other than the code that you added. One thing to try is to get a clean copy of the notebook (see the FAQ Thread) and then very carefully “copy/paste” over just your completed code from the “YOUR CODE HERE” sections and see if that helps.


facing the same problem…

Please check your DMs for a message from me about how to proceed here.

To close the loop on the public thread here, the problem is that the notebook is a very old version from before the course upgrade in April of 2021. That no longer works with the grader here. Please get a fresh copy of the current version as documented here and go from there. Note that the definitions of the main functions have changed, so you need to be careful when “copy/pasting” from your copy to the fresh copy.