Help: Week 1 Initialization Assignment Test Failing

Hi, Seems like an issue with the week 1 programming assignment. Test case failing on and off for the same code. Also, “He” initialization does not give the expected output. It’s behaving worse than the random initialization.

{moderator edit - solution code removed}

Please compare your code with the instructions:

2 Likes

Exactly. You used the wrong random function. The clue is all your values are positive. A normal distribution with \mu = 0 should include both positive and negative values.

1 Like

I feel so naive now. :face_with_peeking_eye:

Do not worry, it is a common mistake.