Exercise 5 - L_model_forward giving error

I am getting following output - when I run this function

AL = [[0.90589057 0.75020632 0.05200643 0.82351754]
[0.99823392 0.08462048 0.01610661 0.98885794]
[0.9999688 0.33941221 0.83703792 0.99971951]]
Error: Wrong shape for variable 0.
Error: Wrong shape for variable 0.
Error: Wrong shape for variable 1.
Error: Wrong shape for variable 2.
Error: Wrong shape for variable 1.
Error: Wrong output for variable 0.
Error: Wrong output for variable 0.
Error: Wrong output for variable 1.
Error: Wrong output for variable 2.
Error: Wrong output for variable 1.
1 Tests passed
2 Tests failed

Not sure - what I am missing here
I am calling linear_activation_forward function with following input parameters
A_prev
parameters[‘W’ + str(l)]
parameters[‘b’ + str(l)],
“relu”
and second time with “sigmoid”

But for the second time, with sigmoid, we only want the parameters of the Last Layer which is L, not l. And, A, not previous A.
Best,
Saif.

1 Like

Thanks its working now

Glad to know that… :+1: :+1: :+1: