Programming Assignment: Building your Deep Neural Network - Course 1 Week 4

For the first helper function we have to use numpy.random.randn. The documentation notes that new code should use standard_normal and I tested it in the notebook. Grader doesn’t give me any errors.

This output “All tests passed” is with numpy.random.standard_normal instead of random.randn.

I also tried " numpy.random.Generator.standard_normal" But not all tests were passed. I will leave numpy.random.standard_normal unless a mentor tells me otherwise :slight_smile:

If you look at numpy.random.randn, the note says: This is a convenience function for users porting code from Matlab, and wraps standard_normal.. You are good to go.