Although I passed the Assignment , there remains an error in model and I would like to close the Course1 with all the assignments fully solved. So I tried to find the error but I did not succeed.
It seems that the init call for “w” is the culprit but I tried X_train.shape[0] and I got the error 1: A mismatch with X, because X has a different shape. But we have called “model” with X_train, where does this X come from?
X_train_shape is (4,7) but
X_shape is (2,3) Probably I missed a X = X_train. But where?
Then I tried init with X.shape[0], and logically got the error 2: impossible reshape of a size 2 into a (12288,1).
I made a error that I cannot see. Can you help me to solve it?.
Error 1:
Error 2: