All tests passed for ML Specialization week 2 practice lab but result keeps showing 41/100

See screen shots below where I successfully run the tests and got expected results, but score keep showing up as 41/100 with tests failed. Anyone knows why please help, thanks

Hi @Wei_Zhang4 ,

Try doing a clean run, then save your work before submitting to the grader. From the menu bar at the top, select:

Kernel → restart & clear all output
Cell → run all
Save your work
submit

Tip:
Passing the tests in the notebook does not prove your code is perfect.
This is because the grader uses entirely different tests.

Hello there? An interesting case actually? Could you share full code if you want to? Maybe something niche is missing, like proper full formula, or regularization is required? I could actually help with that if you wish so

Sharing code on the forum for the assignments is not allowed, by the Code of Conduct.