Course 1 Week 2 Practice Lab Grading Error

Hello, I am a new learner to this course. Upon submission of the practice lab for week 2 of the course 1 in the machine learning specialization it keeps grading me and saying my gradient descent function is incorrect, however all my test cases pass and all the expected outputs are the same as mine.

I would love any assistance with this, thank you!

There is an error in your code. The grader uses different tests than those in the notebook.

Check that your code will work with any set of data or conditions.

Hello, I appreciate the help, it seems I just had to refresh my code again and now it works!

Thank you.

Another reason for grader problems is if you do not manually save your notebook before grading. The notebook autosave often works very slowly.
Use Save and Checkpoint before grading.

3 Likes