Course 2 Week 1 Assignment 3 - Grad checking: 80/100 despite all tests working

Hi all,

I’ve tried submitting Assignment 3 with both forms of the pset requested

  1. grad checking working properly but backprop not working properly (which was purposely initialized improperly)
  2. grad checking working properly, with backprop working properly (updated after the the last part of the assignment suggested changing it)

After submitting both versions, I get 80/100 with this output:

[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 functions that we are supposed to submit have been validated by the program (green text saying ‘passed/good job/etc’)

The very first cell of code (with library calls, etc) returns this:

The autoreload extension is already loaded. To reload it, use:
%reload_ext autoreload

Any ideas as to what it could be?

On further detective work, I noticed that Exercise 3 - gradient_check has a cell with test code that is commented out.

I can’t seem to edit the cell for some reason.

x, theta = 2, 4
difference = gradient_check(2,4, print_msg=True)

#gradient_check_test(gradient_check). “”" <------ I need to uncomment this line but can’t edit the cell…"""

Any ideas how to uncomment the line in that cell?

If the cell is not editable, you can just create a new cell and copy the code to your new cell and then edit it. But you have to assume they removed that test for a reason, so there’s no guarantee it will tell you anything useful. You can examine the code for the test by clicking “File → Open” and having a look around.