Hello,
Double check your code. In Y_prediction_train you are using w.b instead of w,b
Best, Saif.
Thank you for capturing the problem!