how to replicate results from sklearn LinearRegression #1154
-
Hello, I am trying to replicate the results from repeatedly calling sklearn LinearRegression at each new datapoint. Currently I am just using this configuration:
My results are fairly different, I am curious about the intercept_lr (this seems to be a param that sklearn doesn't have). How do I replicate results exactly? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey there. I don't believe there is an obvious to reproduce the outputs of scikit-learn's linear regression. However, you should be able to reproduce the results from their SGDRegressor. In fact, we even have a unit test for that. The mathematics of batch and online linear regression are different. The online version should converge to the batch version, but there are no systematic guarantees of that. |
Beta Was this translation helpful? Give feedback.
Hey there. I don't believe there is an obvious to reproduce the outputs of scikit-learn's linear regression.
However, you should be able to reproduce the results from their SGDRegressor. In fact, we even have a unit test for that.
The mathematics of batch and online linear regression are different. The online version should converge to the batch version, but there are no systematic guarantees of that.