r/compsci • • Aug 22 '20

Effortless Way To Implement Linear Regression in Python

https://laconicml.com/linear-regression-python/

[removed] — view removed post

0 Upvotes

1 comment sorted by

1

u/_pestarzt_ Aug 23 '20

Even more effortless:

a, b = np.polyfit(X, Y, 1)

(joke, I get there’s value in understanding the math)