am getting a reshape error…
That means that the w value that you are passing down to predict is incorrect. It should be a (4,1) vector, but it looks like it is a 1D vector of size 2. So your job now is to figure out how that happened. It’s probably a bug in your model function. Print the shape of w right before the call to predict:
print(f"w.shape = {w.shape}")
What does that show? Now track backwards to figure out where the shape of w was determined. This is how debugging works: you start from the point of the error and then you have to work backwards to figure out how it happened.
yeah i figured it out…there was a typo in variable name. my bad.