DLS Course 1 Week 4 Two-layer Neural Network

Hi, When I run the two_layer_model() with inputs for the two_layer_model_test() from the public_tests.py I get the correct Cost: 0.6931596772639871

I use np.random.seed(1), but the parameters are slightly off:

{‘W1’: array([[ 0.01624212, -0.00611774, -0.00528156, -0.01072929, 0.00865408,
-0.02301467, 0.01744721, -0.0076125 , 0.00319123, -0.00249325],
[ 0.0146149 , -0.02060222, -0.00322345, -0.0038387 , 0.01133773,
-0.0109956 , -0.00172846, -0.00878056, 0.00042603, 0.00583025],
[-0.0110114 , 0.01144655, 0.00901652, 0.00502649, 0.00900859,
-0.00683449, -0.00123242, -0.00935936, -0.0026756 , 0.00530532],
[-0.00690482, -0.00396598, -0.00687311, -0.00845556, -0.00671253,
-0.00013296, -0.01116513, 0.00234793, 0.01659059, 0.00741644]]), ‘b1’: array([[ 1.28646939e-06],
[ 5.95573746e-06],
[ 5.01334053e-06],
[-1.13547974e-05]]), ‘W2’: array([[-0.00192562, -0.00887629, -0.00750608, 0.01685823]]), ‘b2’: array([[-0.00268407]])}

This is causing me to fail the tests.

Hi @ValeryLynn , when I compare my cost value with yours, only the two first decimal values are correct. The same with W1, W2, b1, b2, only the first two or three first decimal values are matching. I guess something wrong with your calculation.