W2 last question in programming test - gradient_descent not defined

I dont understand the error thrown, since I haven’t changed the name of the function at all.

I updated the arguments in dEdb() correctly and now it works.

A few tips:

  • Every time you open the notebook, you must run all of the cells starting from the top. That’s where the workspace is configured.

  • Be careful that you don’t modify any code in the notebook except where it specifically says “START CODE HERE”.

  • Note that if you get some strange errors from the grader, one of the common causes for that is if you are using an obsolete copy of the notebook file.