Error in Naive Bayes Assignment, Week 4

I have not deleted any cells or changed anything unreasonable in the notebook, except the parts I was supposed to change. I run the notebook and get the results, however, when I submit the assignment I get “Unexpected Error” for the first excercise. Other excercises seems to be fine, and have been graded successfully.

Hi @jkhoramdel,

Can you provide any details or specifics about the “Unexpected Error” message? If possible, check if restarting the kernel and running all cells in sequence helps.

Let me know if these steps don’t resolve the issue, and we can troubleshoot further.

Actually I have tried restarting the kernel, shutting it down, and re opening the notebook. None of them helped.

I wish there were more details to share, I just observed that when I run the notebook cell by cell, there are no errors. When I submit the notebook for grading, there are three successfully solved exercises, but the first one fails and only displays “Unexpected Error”, and nothing more.

Please post a screen capture image that shows the grader feedback.

Sure. Here is the screenshot:

First check if you added any print() statements to your notebook for debugging. If so, then please delete them. Then do “File”->“Save and Checkpoint”, and submit again.

Thanks for your seggestion. There were several “print” commands in the notebook, I did not add any additional “print” commands. I commented various print commands in Excercise 1 section that I suspected might cause problem, selected “Save and Checkpoint”, but the issue persists.

Please check your personal messages for instructions.

@jkhoramdel

is your issue resolved?