Error in Initializing Adam Optimization Method in Week 2 of Course 2

If you’re sure that doing:

Kernel → Restart and Clear Output
Cell → Run All Above
Then run your test cell

doesn’t work, then you must have damaged something in either the notebook or the public_tests.py file. Did you modify the “Import” block that is the first code cell in the notebook or did you edit public_tests.py? You can get clean copies of both the notebook and the tests by using the procedures on this thread. Then “copy/paste” over your solution code to the clean copy and see if that helps. Note that you need to delete the file public_tests.py as part of the procedure or it won’t be replaced.