编程作业的收获:
J(θ)=12m∑i=1m(hθ(xi)−yi)2 J(\theta) = \frac{1}{2m} \sum_{i = 1}^{m}(h_\theta(x_i) - y_i)^2 J(θ)=2m1i=1∑m(hθ(xi)−yi)2