Skip to content

Instantly share code, notes, and snippets.

@junichiro
Last active May 29, 2019 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junichiro/31230d7569516d9f207fdd4c510211c2 to your computer and use it in GitHub Desktop.
Save junichiro/31230d7569516d9f207fdd4c510211c2 to your computer and use it in GitHub Desktop.
機械学習で精度が出ない時にやることまとめ ref: https://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