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