Problem with L_model_forward

Yes, notice in particular that the shape of your AL value is wrong. It is 3 x 4. But it should be 1 x m, where m is the number of samples, right?

Here’s a thread which takes you through the dimensional analysis for the “2hidden” test case.

1 Like