I am getting an error and cannot seem to resolve it. A wrong value for y pred error shows up !
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.