C2_W3 Programming Assignment: Neural Network with Two Layers

All unit tests evaluated to ‘test pass’. However upon final submission it caught an anoumaly in Excercise 7:nn_model. Below is the error:

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.88792757 -2.15678679]
[-0.90083658 -2.29294507]
[-0.90485966 -2.2175348 ]].

Failed test case: “extra_check”. Wrong bias vector b1..
Expected:
[[0.03448384]
[0.03609865]
[0.0347455 ]],
but got:
[[0.79242606]
[0.92205182]
[0.85903016]].

Failed test case: “extra_check”. Wrong weights matrix W2..
Expected:
[[-0.39306094 -0.41154116 -0.40031599]],
but got:
[[-2.53898163 -2.75359949 -2.64586636]].

Failed test case: “extra_check”. Wrong bias vector b2..
Expected:
[[-0.74585916]],
but got:
[[1.72524631]].

Can somehelp me why this happened?

If you pass the local tests, but fail the grader tests, that most likely means that your code is not “general”. Something about your code is “hard-coded” to match the one particular test case.