Week1_ Lab assignment (Naive Bayes) not working

In Probability & Statistics for Machine learning and data science , week 1 lab assignment (Naive Bayes) is not grading properly and errors in the codes doesn’t resolve. I request to please help in completing week1 lab graded assignment

You mean the grader is not showing the errors?


This error occurs and also errors in the code doesn’t resolve. Please help in this to complete this assignment.

If you added any print() statements to your notebook, try removing them. Then use “Save and Checkpoint” before you submit for grading.

The error says that your notebook has become too large. A very common way that happens is if the notebook contains a lot of output from added print() statements.


Still this error occur, no change even after removing many print statements And also errors in the codes doesn’t resolve. Please help in this.

Does your notebook pass all of the built-tests after you use:

  • “Kernel → Restart & Clear Output”
    …followed by
  • “Cell → Run All”?

After doing this also Some codes error doesn’t resolve but it shows also Grade Error . Please help in completing this lab

Did you get error messages or failed tests when you did Cell → Run All?

If yes, please post screen capture images of those errors.

When I run each block of code then in most blocks I get different errors (failed tests) which doesn’t resolve but when I use cell → run all then no error is shown but while submitting it shows the Grade Error. I can’t able to do this lab assignment.

This implies there are errors in your code in the notebook.

Just an idea - did you perhaps change the name of the notebook ipynb file? The grader always uses ipynb file with the original name.

No, i didn’t change the file name but it doesn’t work. Please help in completing this.

Please check your personal messages for instructions.