Week 3, Ex. 4 please help!

Hi,

I am trying to run the forward propagate function but keep failing one of the tests. I wrote my own “test” to have it print A2 before “return A2, cache” and I don’t see the problem. I’ve attached screenshots below. Any help would be appreciated!

My code:

<< code snipit deleted >>

Thanks,
Sona


Hi @SonaA , have a good look at the instructions of the exercise. For A1 and A2, you need to use the sigmoid() and tanh() functions. Hope this helps solving your error.

Ah, thank you! I can’t believe I missed that. It works now.

1 Like

Great to gear @SonaA