Create a gist now

Instantly share code, notes, and snippets.

@junichiro /file0.txt
Last active Jan 11, 2017

What would you like to do?
機械学習で精度が出ない時にやることまとめ ref: http://qiita.com/junichiro/items/7e2842c7afba2407c49b
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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment