(Not Priority) Week 4 Assignment 1: Submission Error?

I submitted my notebook and received 90/100 - checking grader output, nbgrader-part reads:

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

I went back and deleted all print statements and anything else that could interfere with the grader (all the tests passed fully) and resubmitted, still getting 90/100.

Not a real priority to deal with but unsatisfying. I also went into the test cases code and tried to understand what kernel test case was failing but it’s difficult to parse. Anything else I could try to remedy this?

Thanks v much,

Do you get any test failures when you run the tests in the notebook, as opposed to the grader?

Try “Kernel → Restart and Clear Output” followed by “Cell → Run All”. Then carefully scan through the entire notebook output to make sure there are no errors.

If that is successful, then the most likely problem is that you have “hard-coded” something so that it works for the specific case in the notebook, but is not “general”. E.g. directly referencing the global variable that is passed into a given function as a parameter.

1 Like

Thanks, - tried now and all tests passed with my answers matching the expected output in all cases. Unsatisfying but moving on, thanks for the help. May try looking for hard coded variables at some point