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.

Hello
I have a same issu to submit assignment. I have tried many times but I couldn’t.
SubmissionsRequired
W_mOXCrdEeeNPQ68_4aPpA~Sfu8g~QbBTZ6TnEe-QAgr_wkqqgw

[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.

The following cell failed:

parameters, costs = L_layer_model(train_x, train_y, layers_dims, num_iterations = 1...

print("Cost after first iteration: " + str(costs[0]))

L_layer_model_test(L_layer_model)

The error was:

---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-16-d5e7eb27c0fc> in <module>
      3 print("Cost after first iteration: " + str(costs[0]))
      4 
----> 5 L_layer_model_test(L_layer_model)

~/work/submitted/courseraLearner/W4A2/public_tests.py in L_layer_model_test(target)
    181     ]
    182 
--> 183     multiple_test(test_cases, target)

~/work/submitted/courseraLearner/W4A2/test_utils.py in multiple_test(test_cases, ta...
    140         print('\033[92m', success," Tests passed")
    141         print('\033[91m', len(test_cases) - success, " Tests failed")
--> 142         raise AssertionError("Not all tests were passed for {}. Check your ...
    143 

AssertionError: Not all tests were passed for L_layer_model. Check your equations a...

Are you sure that you did not “hand copy” over any of your functions from the previous “Step by Step” exercise? If you use your “init” function from there, it will fail this test. They gave you all the supporting functions as “imports” here and they had to use a more sophisticated init function to get decent convergence.

Thank you for the clarification. I followed the instructions carefully and relied only on the provided functions, ensuring compatibility with the current setup. I’m happy to share that I have successfully passed the assessment!

1 Like

Hey , even i am stuck there .please help me out