Week3:4.2 - Initialize the model's parameters

Hello,
Im facing AssertionError: Wrong shape for W2. but Both my answer and the expected answer are the same. is it a bug or I’m missing something here?

Strange! The shape seems correct but the values are wrong. Are you using this for weights: np.random.randn(a,b) * 0.01?

I believe the “Expected output” shown there is for a different test (the one built into the notebook).
The shapes there are correct, but the values are wrong.

An additional problem is that the test that fails on the shape assert is in initialize_parameters_test().

I haven’t used that, but it should not affect the shape, right?

since its random value, two matrices might not be similar

I tried multiplying 0.01 but still same error

We used seed to generate the same random values.

ohh! Okay,
The issue is resolved, it wasn’t really the wrong shape of W2, I hard-coded the row value to 1(n_y is 1) instead of n_y