Final lab, exercise UNQ_C5 Function compute_cost_reg is incorrect

Supervised ML: Regression and Classification - Week 3

All test passed but still getting error like "Code Cell UNQ_C5: function Compute_cost_reg is incorrect. Chek implementation.
The result obtained from my python function is the same as the expected result of the exercise.
I have followed the hints.
Where’s the problem ?!

P.

Passing the tests in the notebook does not prove your code is perfect.
The notebook tests only check a few of the basics.

The grader checks your code using completely different tests.

Check your code for these common errors:

  • Use of global variables instead of function parameters.
  • Use of fixed-value constants where a variable should be used.
  • Adding cells.
  • Deleting cells.
  • Making changes outside of the marked areas.
1 Like