Week3 - Assignment : Backward prapogation

Hi,

I am getting an error while computing the backward propagation. I’ve added all the functions as per the instructions. Still, I am getting the below error:

NameError Traceback (most recent call last)
in
----> 1 parameters, cache, t_X, t_Y = backward_propagation_test_case()
2
3 grads = backward_propagation(parameters, cache, t_X, t_Y)
4 print ("dW1 = "+ str(grads[“dW1”]))
5 print ("db1 = "+ str(grads[“db1”]))

NameError: name ‘backward_propagation_test_case’ is not defined

what are t_X and t_Y? As per my understanding, we haven’t generated these parameters.

Regards,
Balram

They are generated by calling the “test case” routine, as we can see from the code that you showed. The reason that test case routine is “not defined” must be that you have not executed the earlier cells in the notebook since the last time you opened the notebook. Try clicking “Cell → Run All Above” and then run your test cell again.

1 Like

Thanks @paulinpaloalto ! It worked!