A3 = [[0.49683389 0.05332327 0.04565099 0.01446893 0.49683389]]
Error: Wrong output for variable in position 0.
Error: Wrong output for variable in position 1.
Error: Wrong output for variable in position 2.
Error: Wrong output for variable in position 5.
Error: Wrong output for variable in position 6.
Error: Wrong output for variable in position 7.
Error: Wrong output for variable in position 10.
Error: Wrong output for variable in position 11.
1 Tests passed
1 Tests failed
Can someone help me realize what I’m doing wrong here?
Hey! You should check with the instructions if you’ve used the correct random function. I think that should let you fix the issue. Since the random values are used to check if your implementation is right or wrong, this is important.
I think @XpRienzo is right. With randn you’re sampling from a different distribution, and thus the computed values do not match those in the test case. The notebook tells you the right function to use.
But please be careful when posting code. You’re unintentionally giving away the answer!
I am having this error.
AssertionError Traceback (most recent call last)
in
4 print ("A3 = " + str(A3))
5
----> 6 forward_propagation_with_dropout_test(forward_propagation_with_dropout)
/opt/conda/lib/python3.7/site-packages/dlai_tools/testing_utils.py in multiple_test(test_cases, target)
162 print(‘\033[91m’, len(test_cases) - success, " Tests failed")
163 raise AssertionError(
→ 164 “Not all tests were passed for {}. Check your equations and avoid using global variables inside the function.”.format(target.name))
AssertionError: Not all tests were passed for forward_propagation_with_dropout. Check your equations and avoid using global variables inside the function.
I tried both with and without using global variables, but I still encountered the same error…