W4_A1_Ex-1_initialize_parameters_test fails on random values

Need help with why this simple code is failing. Dimensions of W1 and W2 looks correct but looks like the test is failing on actual random values being generated.

{moderator edit: code removed}

Hi @Shiraz_Hussain ,

Please check the instruction, the function to use for generating W is np.random.randn(), not np.random.rand() as you have used in your code.

In the future, please do not post your code on the forum. That’s not allowed by the Code of Conduct.

I’ve deleted the code from your post.

If a mentor needs to see your code, we’ll contact you with instructions.