Inverted droput C2 Week 1

Hi I am trying to complete forward_propagation_with_dropout(Course2 Week1, Exercize 3); however i am getting 1 test passed and 1 test failed. I have printed at every stage and feel my code is working fine and i have implemented all 4 steps. Can you please guide how i can check further. I can post my code here if its allowed or can share at other platform.

The common mistakes are:

  1. Using the wrong random function to compute the mask. We need numbers evenly distributed between 0 and 1, so using np.random.randn will end badly.
  2. Creating the mask as a column vector instead of a matrix the same shape as A. See this thread for more discussion of that point.
  3. Forgetting to do the “inverse” calculation after applying the mask.

Thanks Paulin. Now its working; i picked up the bug.