Week 2 Assignment 1 - Exercise 8,9 Loss Functions

Hi,
I am working on the optional assignment for Week 2 and am getting stuck on Exercise 8,9 every time for the Loss functions L1 and L2.
Each time I am getting the same error when I run the code, can someone help me?

Errors:


NameError Traceback (most recent call last)
in
3 print("L1 = " + str(L1(yhat, y)))
4
----> 5 L1_test(L1)

NameError: name ‘L1_test’ is not defined

NameError Traceback (most recent call last)
in
4 print("L2 = " + str(L2(yhat, y)))
5
----> 6 L2_test(L2)

NameError: name ‘L2_test’ is not defined

That means you have not executed the earlier cells in the notebook. Try “Cell → Run All Above” and then try your tests again. You need to do this every time you close and reopen the notebook.