MENU

Fun & Interesting

justforfunc #38: Linear Regression with Gradient Descent (ML4G #2)

justforfunc: Programming in Go 7,720 lượt xem 6 years ago
Video Not Working? Fix It Now

In a previous episode (https://www.youtube.com/watch?v=ihP7lQivA6M) we learned how to plot data with gonum and we added a line that approximated those points ... but we totally made that up!

During this episode we'll cover how to evaluate how good a line matches the points and how to find the best line possible by using gradient descent.

- gonum: https://gonum.org
- gonum/plot docs: https://godoc.org/gonum.org/v1/plot
- gradient descent for linear regression: https://www.coursera.org/lecture/machine-learning/gradient-descent-for-linear-regression-kCvQc
- source code: https://github.com/campoy/justforfunc/tree/master/38-linreg-vanilla

Comment