Coding Error in Machine Learning Specialization lab

I am having an error with the first graded lab. I cannot seem to edit the cell which is causing the error (cell 8). Can someone please help me in approaching this?

If the cell is not editable, that means it is the test, not your code. Each function we have to complete in any of the assignments will be followed by one or more tests to check whether our code is correct or not. If the test fails, the solution is not to change the test, right? The solution is to figure out why your code fails the test. So the first step is to understand what the test code is checking and that is the clue about what is wrong with your code.

1 Like