Previous Story, we used the golang to implement simple gradient descent example.

This time, we will extend to the linear regress problem. How to do it with golang ? Instead of Python or Other tools !

First, we need to build up a problem and get some background knowledge.

Suppose we have 100 samples { x0,x1,x2,x3,….x99 } and {y0,y1,y2,….y99}

Assume the final best-fit function f(x) = Y = betaZero + betaOne * X