What algorithm is used by the sklearn library?

When I use the sklean library (LinearRegression) module to train the model using
model = LinearRegression()
model.fit(X)
Which algorithm is used internally?
Grad Descent pr Closed form or something else?

Interesting question.
I looked up in the sklearn documentation and they haven’t specified what they use though I am quite sure they must be using Gradient descent because it’s more suitable to a wider range of data sizes.

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.