Instantly share code, notes, and snippets.

junichiro/file0.txtLast active Jan 11, 2017

What would you like to do?

 err(h_\theta(x), y) = \left\{ \begin{array}{ll} 1 & (h_\theta(x) \geq 0.5, y = 0 \quad or \quad h_\theta(x) \lt 0.5, y = 1) \\ 0 & (otherwise) \end{array} \right.
 \begin{align} &d = 1, \quad h_\theta(x) = \theta_0 + \theta_1x \\ &d = 2, \quad h_\theta(x) = \theta_0 + \theta_1x + \theta_2x^2 \\ &\vdots \\ &d = 10, \quad h_\theta(x) = \theta_0 + \theta_1x + \ldots + \theta_{ 10 }x^{ 10 } \end{align}