Whenever i try to submit my work, I always get the same line “Comment line with index: UNQ_C3
wasn’t found in code” despite my code passing in all of the tests in the notebook. Not sure how to resolve this.
Hello Tony,
It’s likely that these two lines are missing.
You may copy them from here:
# UNQ_C3
# GRADED FUNCTION: compute_gradient
Raymond
thank you so much raymond
You are welcome Tony!
hi raymond, it is now hitting me with this “Cell #14. Can’t compile the student’s code. Error: AttributeError(”‘NoneType’ object has no attribute ‘tolist’“)”, how would I be able to fix this?
First, you need to locate the source of the problem. Here is the step:
Open the lab on coursera, on the menu bar of the jupyter notebook, click “Kernel” > “Restart & run all”. One by one it will run your code cells and on the L.H.S. of which it will show a “Cell number” when a cell is finished. Follow the cell numbers until it reaches #14. Then you should see a more elaborated error under cell #14 for where the problem is, then you will need to try to fix it. It’s likely that you are expected to return a numpy array for a variable but instead the variable became a None
. You need to figure out why.