C2_W3 Ex 4 Forward Propagation Test failing

Hello Everyone

I get this error in the unit test for Ex 4(forward_propagation). The values are really close, so I am not sure why the tests don’t pass (it looks like the unit tests aren’t using an approximation to test the output). Any ideas?

Thanks
Renuka

est case “change_weights_check”. Wrong output of Z1 for X =
[[ 5.46584646 6.71120407 7.21301753 … 1.77559174 3.52245562
7.86492998]
[ 2.91868287 10.31812597 7.79616824 … 2.43434264 3.64044705
6.77517917]]
Test for i = 1, j = 1999.
Expected:
-0.03577862954823146
Got:
-0.03577862954823145
47 Tests passed
1 Tests failed

Hi @renusubs

I think this error because the size of data types and you save the value of each output in new variable so the solution would be like this thread

Best Regards,
Abdelrahman

Hello @AbdElRhaman_Fakhry

Thanks for your response. I was making some other error. IT’s now fixed and the tests pass.

–Renuka