I’ve passed all tests in programming assignment week3. But in executing cell below has a problem. Because ((predict)) didn’t defined in previous cells.
Maybe you didn’t run the defined function before using it.
After finishing the predict function, try to press “shift+return” to run the predict function so that you can use it in the later code, otherwise it would show that this function is not defined.
We lock ungraded cells in all assignment. If you wonder how to handle error that appears in a locked ungraded code cell, you may want to take a look at this FAQ.
As for the problem you are encountering, as @gent.spah and @YijinChen suggested, since predict is your exercise 4, you need to first run the code cell containing it in order to define it, before running any subsequent code cell. Also, each time you re-open a notebook, please make sure to run all the code cells from the top.