The logistic_regression_model variable is never set because of an error … the error happens during the calculation of the last Cost calculated.
ValueError: operands could not be broadcast together with shapes (1,50) (1,209)
I changed the num_iterations variable to 2100 and 1999 … and the calculation always fails with the same error.
All previous code passed the in-built tests.
Any suggestions?
Thank you!
EDIT:
Added screen shot
And looking at the Cost results … the Costs are decreasing with each iteration and those values seem right to me …
EDIT2:
Well … turns out I had my Y_train and Y_test swapped …
Things are working now!