I’ve no clue. But you can check the solutions in the Lab Files (top right) to compare as well as the hints.
But yeah, the course is really new. As of right now the 3rd course of this ML specialisation, on Unsupervised Learning hasn’t been uploaded yet so there are bound to be some errors – re: typos and other weird little artifacts
Kindly ignore this issue. I was using regularized term unnecessarily. There was lambda parameter given in the function definition which caused confusion.