Every time you open the notebook, you have to run all of the cells starting from the top. That is how the workspace is configured and all of your functions are prepared for use.
Please share a screenshot of the error you are getting. Also, make sure you are running your notebook on Coursera Environment, not on your local environment.
I’m not sure what information we are to understand from this statement. If you have 100% on Week 2, what is your question about? What “another task” are you referring to?
I’m in the same position as Tom and Saif: I don’t really understand what your error looks like. But here’s one guess: if after rerunning the whole notebook you still get “predict not defined” then maybe you accidentally converted the function cell for predict from a code cell into a markdown (documentation) cell. There is a menu item “Cell → Cell type” that you can use to check and also switch it back if it shows as “Markdown”.
Exercise 7 is about predict, but the Graded Function is optimize.
Ln [36] need prediction, but the Graded function is about optimize.
I’m frustrated with the second week.
I started this test in January. After a few days this test was gone and I had to start another test again. I passed the test with 100% success. Now this test is gone and the old test is back. But I can’t get any further here.