I understand that both LinearRegression
class and SGDRegressor
class from scikit-learn
performs linear regression. However, only SGDRegressor
uses Gradient Descent as the optimization algorithm.
Then what is the optimization algorithm used by LinearRegression
, and what are the other significant differences between these two classes?