Course 1, Week 4, Programming Assignment 2 "Deep Neural Network - Application"

Hi,
I am facing an issue with the two_layer_model in this assignment.
The test fails with the following message:


The message does not indicate exactly what’s wrong with the parameters.
I verified that they are the right shape so I don’t know exactly what else is wrong.
Moreover, all the following tests (training, prediction) based on this two_layer_model function are successful.
I don’t see any issue with the logic I implemented and I could use a hint.
Thank you.

I received the hint I needed from Paul Mielke in Coursera forum.

I was using the wrong initialization method “initialize_parameters_deep” instead of “initialize_parameters”

Thank you for your help.
Now the test is successful

Hi, Julien.

Glad to hear that was the answer. Discourse is the better place to ask any further questions. Onward! :nerd_face: