I’m trying to complete the forward propagation module
what is the matter with my code
i got this
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
however Expected output
AL = [[0.03921668 0.70498921 0.19734387 0.04728177]
For starters, your AL value is 3 x 4, but the expected value for that is 1 x 4. The first step in a case like this is to do the “dimensional analysis” in order to understand what you should get at every level. Here is a thread which goes through that for the “2hidden” test case for L_model_forward. Please read that thread and then start examining what your code is actually producing at each layer and comparing it to the correct shapes.
Hi, did you manage to solve your problem?
I am having a same issue now