W 4 A1 | Ex-1 | Seems like a random seeding issue

Hello team,

I’m working on this assignment of week 4 and although my parameters’ shapes are correct, and correctly scaled at 0.01, W1 and W2 are not passing the test for their values.
I suspect an issue of random seeding…

Output of the test cell:

W1 = [[4.17022005e-03 7.20324493e-03 1.14374817e-06]
 [3.02332573e-03 1.46755891e-03 9.23385948e-04]]
b1 = [[0.]
W2 = [[0.0018626  0.00345561]]
b2 = [[0.]]
Error: Wrong output for variable W1.
Error: Wrong output for variable W2.
 1  Tests passed
 1  Tests failed

Please click my name and message your notebook as an attachment.

When initializing weights, you should not use numpy.random.rand. Look at the markdown cell in the cell above the exercise to use the standard normal distribution instead of uniform distribution.

I cannot believe I missed that. Thank you so much for your help!

The clue is that all your output values are positive, which should never happen with a normal distribution with \mu = 0 and \sigma = 1. Well, it technically could happen, but the probability would be exceedingly low. :nerd_face: