Coursera Machine Learning Course2 : UNQ_C2 # GRADED CELL: eval_cat_err def eval_cat_err(y, yhat):

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