All tests not passed

Course 2 week 1 Initialization assignment
In exercise 3 I have written correct code but 1 test is not being passed. And When I submitted assignment it grader gave me 67 grade…

Uploading: IMG_20220924_100517.jpg…

If your code is correct, then why do the tests fail and your answers not agree with the expected values? A better point of view to start from is to say “there is something wrong with my code and now I need to figure it out”.

For starters one clue is that all your W1 and W2 values are positive, whereas the “expected values” are both positive and negative. That suggests that you used the wrong random function. “rand” is not the same thing as “randn”. Please have another careful look at the instructions: they literally wrote out the function name for you.