Professional Documents
Culture Documents
Cost function
For the parameter vector θ (of type Rn+1 or in R(n+1)×1 , the cost function is:
m
1 2
J(θ) = ∑ (hθ (x(i) ) − y (i) )
2m i=1
1
J(θ) = (Xθ − y )T (Xθ − y )
2m
In other words:
https://www.coursera.org/learn/machine-learning/resources/QQx8l 1/1