Machine Learning: Difference between revisions

Line 10: Line 10:
===(Mean) Squared Error===
===(Mean) Squared Error===
The squared error is:<br>
The squared error is:<br>
<math>J(\theta) = \sum|h_{\theta}(x^{(i)}) - y^(i)|^2</math><br>
<math>J(\theta) = \sum|h_{\theta}(x^{(i)}) - y^{(i)}|^2</math><br>
If our model is linear regression <math>h(x)=w^tx</math> then this is convex.<br>
If our model is linear regression <math>h(x)=w^tx</math> then this is convex.<br>
{{hidden|Proof|
{{hidden|Proof|