Exercise 7: nn_model
Failed test case: “default_check”. Wrong weights matrix W1…Expected:
[[ 2.22641773 -1.95781602]
[ 1.92521557 -1.74008809]],
but got:
[[ 3.12292536 -2.00602356]
[ 2.11433563 -2.67249192]].
Failed test case: “default_check”. Wrong bias vector b1…
Expected:
[[ 6.31408636]
[-4.84201647]],
but got:
[[ 21.54930748]
[-52.65199791]].
Failed test case: “default_check”. Wrong weights matrix W2…
Expected:
[[ 7.12818935 -7.24882361]],
but got:
[[ 6.84584773 -8.92292726]].
Failed test case: “default_check”. Wrong bias vector b2…
Expected:
[[-3.43414637]],
but got:
[[-283.48488076]].
Failed test case: “extra_check”. Wrong weights matrix W1…
Expected:
[[-0.05350702 -0.10250995]
[-0.07303197 -0.1295294 ]
[-0.07487082 -0.11145172]],
but got:
[[-0.06500436 -0.14837496]
[-0.08332306 -0.17437982]
[-0.08587178 -0.15677083]].
Failed test case: “extra_check”. Wrong bias vector b1…
Expected:
[[0.03448384]
[0.03609865]
[0.0347455 ]],
but got:
[[0.12467813]
[0.12810604]
[0.12534048]].
Failed test case: “extra_check”. Wrong weights matrix W2…
Expected:
[[-0.39306094 -0.41154116 -0.40031599]],
but got:
[[-0.72714512 -0.74321599 -0.7325917 ]].
Failed test case: “extra_check”. Wrong bias vector b2…
Expected:
[[-0.74585916]],
but got:
[[-1.41268193]].
Exercise 8: predict
5/10 points earned
Failed test case: “default_check”. Wrong output array…
Expected:
[[ True True False False]],
but got:
[[ True True True True]].
Failed test case: “extra_check”. Wrong output array…
Expected:
[[ True False True True True]],
but got:
[[ True True True True True]].
I have read all earlier threads on similar issues.
I have initialised W1 and W2 as per instructions .
EDIT:
I fixed the issue.
For those who are getting this error, Please note that it need not be issue with W1 and W2 initialisation alone .
I had issue with forward computation. I didn’t add b1 and b2 to Z1 and Z2 during computations
Thanks for your report on how you fixed the issue.