That’s because your code was still using y_hat inside the function. That’s a global variable that should not be used inside the function.
Found the issue. I was using y_hat when it needed to be yhat
Good news!
Thanks for your guidance - much appreciated
1 Like