This is not a problem I am having, quite the opposite. My code passes the regularization test, but the intended output for the regularization Term is 28.09, while my function returns 27.00. This is very confusing to me.
1 Like
The Vectorised implementation given by the lab also returns 27, while it says that 28.09 is expacted
1 Like
There is an error in your code for cofi_cost_func().
It passes the unit tests that are public_tests.py : test_cofi_cost_func(), but it does
not pass the tests that are built into the notebook.
All of these tests use different data and conditions. Your code has a defect under the conditions used in the notebook.
1 Like
No, the grader has its own separate tests.
The values shown in the notebook for the “Expected Output” are correct:
One thing to check - have you modified the notebook’s file name?
The grader doesn’t like that. It will always grade the notebook that has the original file name.