# Week1 Regularization Assignment - forward\_propagation\_with\_dropout() error

**URL:** <https://community.deeplearning.ai/t/week1-regularization-assignment-forward-propagation-with-dropout-error/6404>\
**Category:** Improving Deep Neural Networks: Hyperparameter tun\
**Tags:** coursera-platform\
**Created:** [May 16, 2021, 5:29am UTC](https://community.deeplearning.ai/t/week1-regularization-assignment-forward-propagation-with-dropout-error/6404 "2021-05-16T05:29:34Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nramon](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/nramon/32/129097_2.png) [@nramon](https://community.deeplearning.ai/u/nramon)\
**Post date:** [May 17, 2021, 5:48pm UTC](https://community.deeplearning.ai/t/week1-regularization-assignment-forward-propagation-with-dropout-error/6404/4 "2021-05-17T17:48:21Z")

</div>

@Leanne had the exact same problem. I’m posting a link to the following thread in case it helps other learners:

> [@Np.random.rand() vs np.random.randn()](https://community.deeplearning.ai/t/np-random-rand-vs-np-random-randn/1972):
>
> Hey, so in all previous programming assignments, I have been using np.random.randn(shape), however in the gradient checking programming assignment, when I used np.random.randn() out of memory, the test didn’t pass. I then read carefully to find it asked us to use np.random.rand(), What’s the difference? Is it just that the test didn’t pass because it was configured with np.random.rand() but in real life for use, np.random.randn() will work just as well, or am I missing something? Thanks!

Good luck with the rest of the course, @yash_3 🙂

---

_[View the full topic](https://community.deeplearning.ai/t/week1-regularization-assignment-forward-propagation-with-dropout-error/6404)._
