Week 1 assignment 1 Exercise 2

I am getting an error and cannot seem to resolve it. A wrong value for y pred error shows up !

Hi @BrutalCaeser

The code looks fine. Try refreshing the kernel and rerun the code.
Just a reminder, posting of code on the Forums would violate the honour code policy. Only post your code in a direct message when invited.