So rather than trying to find models, there is already a nonlinear polynomial regression model, for which I need to find the theta parameters.
= 12 + 2(1)^3 +3*(2)^4 + +
How would you go about estimating the parameters using least squares on a training dataset with four features x1-x4? I'm thinking forward subset selection, but I'm not sure how to implement this in Python.
Edit: If you already have the form of the model as shown above, do you still need to carry out subset selection in order to estimate model parameters? or can you just go ahead and use your training data in:
theta = (XTX)-1XTy
I gather forward subset is a model selection technique for when you don't already have a candidate model.
Thanks in advance.