C1_M1_Assignment: Unexpected error grades 0

I am trying to submit the Programming Assignment ‘Deeper Regression, Smarter Features’ but I receive an ‘Unexpected error occurred’ message, resulting in 0 points for all exercises.

I have already performed the following troubleshooting steps:

  • Restored the notebook to the original version.

  • Modified only the designated ‘START CODE HERE’ blocks.

  • Restarted the kernel and ran all cells to ensure they pass the local unit tests.

  • Saved the notebook and cleared my browser cache before submitting.

Despite these steps, the error persists.

Could someone help me.

It might shed some light if you could show us the actual output from the grader as a screenshot. Sometimes the grader will give more information about the nature of the error.

Your debugging steps are the right way to approach the problem, but if that doesn’t solve anything then there may be a real issue with the code. It is possible to pass the tests in the notebook with code that is not fully general, so that it fails when the grader uses a different test case. E.g. referencing global variables from the body of a function, instead of the formal parameters, can have this effect.

It is the screenshot I get, whenever I submit.

Thanks for the additional info, but unfortunately that info doesn’t really give details. Maybe in this case we’re out of luck, but the place to look is under the details of the submission as shown in this screenshot:


To see that, please click on the “View Submission” button if there is one.

But it’s probably time to look at your code. We can’t do that on a public thread, but please check your DMs for a message from me about how to proceed with that.

Thanks for the reply, we will continue in DM.

just a correction in the steps you have followed.

One is supposed to clear out the kernel output, then re-run all the cells successfully till end.
then click on the :floppy_disk: before submitting the assignment.

An unexpected error also can occur if any changes were made even Inside the code markers, like changing a variable name already given. one is only suppose to replace the None with their code.

Lastly sometimes multiple submission attempt in a given short period of time can cause such issue. then one has to re-attempt only after some duration, probably next day.

if there are any code issues probably @paulinpaloalto will guide you, but keep in mind these pointers when doing an assignment.

Regards
Dr. Deepti

To update the public thread, Pranav sent me the notebook and it passes with 40/40 for me. The code looks fine. The only difference between that notebook and mine was that there is “test cell” where you can enter your own input parameters and test the code and that had not been filled in. But when I submitted it that way, the grader didn’t care and gave full marks. Pranav has also tried filling in those None values and still gets the “Unexpected error” failure.

So this is looking like it must be something environmental. We may need to get Mubsi to take a look.

Update: note that my method of comparing the notebook was to literally do a linux diff command against the clean version and my version of the full ipynb files, so I would have noticed if any of the hidden JSON metadata had been changed. All the metadata matched with my version.

1 Like

I will add Dr. Deepti and Mubsi to the DM thread about this issue.