So I start plain vanilla with a fresh notebook (“restored from original“) and solve the first exercise. I only modify the code within the marks. The unittest passes but I still get the unexpected error message. I finished the complete course already except for this exercise. Here is a screenshot again:
The issue has been resolved for me. Turns out that you are not able to submit a partial solution. You need to solve the complete notebook and save the model. Not saving the model at the end was causing the error most probably.
Hi @Mubsi , I tried everything for Course 1 Module 2: programming assignment, and all the code tests passed in the notebook, while still got the same error: unexpected error.
I have reset the environment and checked, everything seems to be working now. Hopefully, it will work for you as well.
Note: These instructions only apply to students taking the course on DeepLearning.AI’s Learning Platform.
Please do the following:
Open the C1 M2 Assignment
Restore your environment: I would recommend doing this to make sure you have the latest environment, and my other recommendation would be to attempt the assignment from scratch instead of using your old solutions/notebook.
Once your assignment opens, click on the three dots on the right side of the panel, and then click “Restore Original Version”
Wait for your workspace to reset and open again. And then attempt the assignment again.
This assignment (which should be attempted in the notebook named C1M2_Assignment.ipynb), along with the notebook also needs the trained model for grading, so make sure you have ran every cell up to “Submission Note” markdown to ensure the train model has been saved in your workspace.
The click on “Submit”.
If the problem still remains even after following all of the steps above, let me know.