Linear regression model shows b > 0 where it should be (close to) 0 #561
Unanswered
sysarch-repo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using
and a simple linear regression from the gorgonia documentation with generated data to satisfy y = 2x + noise.
The calculation of m and c shows bias > 0. Example from the documentation:
float32: y = 2.001x + 2.001
float64: y = 2.001x + 2.001
Shouldn't the model be good enough to eliminate the noice and come up with b = 0.0?
Also, I do not see how the cost is utilized in the code. Thoughts?
Here is the complete code from the documentation:
Beta Was this translation helpful? Give feedback.
All reactions