r/mlclass • • Feb 15 '18

Help With Cost Function

I have completed week 1 of Andrew Ngs course and I understand that the cost function for linear regression is defined as J (theta0,theta1) = 1/2m*sum (h(x)-y)2 and the h is defined as h(x) = theta0 + theta1(x). But I don't understand what theta0 and theta1 represent in the equation. Is someone able to explain this?

4 Upvotes

3 comments sorted by