I am working on the Initialization graded assignment Exercise 2 - initialize_parameters_random. My code is not passing tests. I have already debugged it but still cannot manage to pass the test. Could someone please help me? Code and error message below:
{moderator edit - solution code removed}
Error message:
AssertionError Traceback (most recent call last)
in
4 print("W2 = " + str(parameters[“W2”]))
5 print("b2 = " + str(parameters[“b2”]))
----> 6 initialize_parameters_random_test(initialize_parameters_random)
~/work/release/W1A1/public_tests.py in initialize_parameters_random_test(target)
65 ]
66
—> 67 multiple_test(test_cases, target)
68
69 def initialize_parameters_he_test(target):
/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 initialize_parameters_random. Check your equations and avoid using global variables inside the function.