Hello everyone,
something isn’t working in the second course of the deep learning specialization (week 2) exercise 4.
not all tests passed, and the re is an error like:
W1 =
[[ 1.62434536 -0.61175641 -0.52817175]
[-1.07296862 0.86540763 -2.3015387 ]]
b1 =
[[ 1.74481176]
[-0.7612069 ]]
W2 =
[[ 0.3190391 -0.24937038 1.46210794]
[-2.06014071 -0.3224172 -0.38405435]
[ 1.13376944 -1.09989127 -0.17242821]]
b2 =
[[-0.87785842]
[ 0.04221375]
[ 0.58281521]]
v["dW1"] =
[[0. 0. 0.]
[0. 0. 0.]]
v["db1"] =
[[0.]
[0.]]
v["dW2"] =
[[0. 0. 0.]
[0. 0. 0.]
[0. 0. 0.]]
v["db2"] = v[[0.]
[0.]
[0.]]
2 Tests passed
1 Tests failed
AssertionError Traceback (most recent call last)
<ipython-input-41-f37bbbdbd581> in <module>
11 print("v[\"db2\"] = v" + str(v["db2"]))
12
---> 13 update_parameters_with_momentum_test(update_parameters_with_momentum)
~/work/release/W2A1/public_tests.py in update_parameters_with_momentum_test(target)
155 ]
156
--> 157 multiple_test(test_cases, target)
158
159 def initialize_adam_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 update_parameters_with_momentum. Check your equations and avoid using global variables inside the function.
thank you