Hi, @duke_786.
In forward_propagation_with_dropout you are generating a mask of 1’s and 0’s to shut down neurons with a certain probability.
To put it simply, if you replace np.random.rand with np.random.randn you’ll be generating more 1’s than you intended (here’s the reason).
You could adjust the expression to get the right percentage of 1’s with np.random.randn, by the way. It’s just not as straightforward as using np.random.rand.
Good luck with the assignment 