Reputation: 791
When I build a linear regression model in python or R, I just use the fit method. This method does not ask for initializing the learning rate, or starting point while this is required in gradient descent (as far as I know). So if I assume that the model is using Gradient descent to optimize, how these parameters are choosen by the linear model when using fit method?
Or, if the model does not use gradient descent (or its any type), then which algorithm it uses (and how) to optimize?
Upvotes: 0
Views: 204
Reputation: 926
I assume you are using lm.fit() method. This method uses QR Decomposition technique for the regression. This technique doesn't require setting learning rate and starting point parameters.
Upvotes: 0