This looks like it’s about the Planar Data assignment in DLS Course 1 Week 3, so I used the little “edit pencil” on the title to move it for you. If I jumped to the wrong conclusion here, please let me know or just fix it by doing your own edit to the category.
The value you show for A2 is not correct. Here’s what I see with correct code:
A2 = [[0.21292656 0.21274673 0.21295976]]
All tests passed!
But it turns out that I have seen an error from another student recently that also produces exactly the same wrong answer that you show. Note that we do not want to call the initialization routine within the body of forward_propagation, because that would defeat the purpose here. E.g. it would mean that every time we call this, we get the same answer, because we start from the initialized values of the parameters.
Of course there may be other ways to get that incorrect answer, so if that’s not it, then please compare your code to the steps described in the instructions.