Skip to content

how to replicate results from sklearn LinearRegression #1154

Answered by MaxHalford
samchaaa asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@samchaaa
Comment options

@MaxHalford
Comment options

Answer selected by samchaaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants