Wk2, Exercise 8 Wrong shape for d['Y_prediction_test']

{moderator edit - solution code removed}

I don’t understand my error

I think I passed in the appropriate inputs into optimize and predict but I am getting an error:
Wrong shape for d[‘Y_prediction_test’]. (1, 7) != (1, 3)

Please advise

You have reversed the X values that you are passing to predict. You are passing X_train to compute Y_prediction_test. That is why the shapes come out differently.

oh my goodness

thank you so much for catching that