Hi, I have no idea why this is happening. MY validate option on the notebook shows all tests passed, and when i run the cells, it shows all tests passed, but the grader says im getting only a 60/100 when i submit. I wouldnt mind this if I had atleast passed, which is 70/100 but this is not the case. Can someone please point me in the right direction?
The grader tests your code using different data sets and conditions.
Passing the test cases in the notebook does not prove your code is perfect.
What is the feedback from the grader? It should tell you more details on which functions did not pass, and why.
It says the following - [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.
The first thing to check is if your code uses any global variables, or if it uses hard-coded index values.
Also, please be sure that you have not re-named the notebook file. You cannot submit a renamed notebook for grading.
Also note that I don’t use or trust the “validate” option. Please do the following steps:
- Kernel → Restart and Clear Output
- Cell → Run All
Then carefully page through the notebook and make sure no errors are getting thrown and all the tests pass.
If everything still looks correct with that method, then you need to look for the types of errors that Tom mentions: ways in which your code is not general, meaning that it passes the specific tests in the notebook, but fails a different test from the grader.
If you can’t find anything, then we can go to the step of looking at your code by using a DM conversation.