Cost after iteration 0: 0.692739
Cost after iteration 1000: nan
Cost after iteration 2000: nan
Cost after iteration 3000: nan
Cost after iteration 4000: nan
Cost after iteration 5000: nan
Cost after iteration 6000: nan
Cost after iteration 7000: nan
Cost after iteration 8000: nan
Cost after iteration 9000: nan
W1 = [[ -16186.13630757 40180.82996963]
[-360723.53188029 896731.32715588]
[ 17257.96007911 -42822.70465944]
[ 209480.75357122 -519895.20920142]]
b1 = [[ -9474.41783091]
[-211140.18602741]
[ 10090.92043859]
[ 122539.91698547]]
W2 = [[ -9.47145191 -211.86057992 10.10540846 122.72616583]]
b2 = [[1998.68544]]
Error: Wrong output for variable W1.
Error: Wrong output for variable b1.
Error: Wrong output for variable W2.
Error: Wrong output for variable b2.
2 Tests passed
1 Tests failed
AssertionError Traceback (most recent call last)
in
7 print("b2 = " + str(parameters[“b2”]))
8
----> 9 nn_model_test(nn_model)
~/work/release/W3A1/public_tests.py in nn_model_test(target)
306 ]
307
→ 308 multiple_test(test_cases, target)
309
310 def predict_test(target):
~/work/release/W3A1/test_utils.py in multiple_test(test_cases, target)
140 print(’\033[92m’, success," Tests passed")
141 print(’\033[91m’, len(test_cases) - success, " Tests failed")
→ 142 raise AssertionError(“Not all tests were passed for {}. Check your equations and avoid using global variables inside the function.”.format(target.name))
143
AssertionError: Not all tests were passed for nn_model. Check your equations and avoid using global variables inside the function.