Skip to content

Instantly share code, notes, and snippets.

@satojkovic
Created June 4, 2013 16:18
Show Gist options
  • Save satojkovic/5707279 to your computer and use it in GitHub Desktop.
Save satojkovic/5707279 to your computer and use it in GitHub Desktop.
J(¥Theta) =
- ¥frac{1}{m}
¥left[
¥sum_{i=1}^{m}
¥sum_{k=1}^{K}
y_{k}^{(i)} ¥rm{log} ¥, (h_¥Theta (x^{(i)}))_{k} +
(1-y_{k}^{(i)}) ¥rm{log} ¥, (1-(h_¥Theta (x^{(i)}))_{k})
¥right] +
¥frac{¥lambda}{2m}
¥sum_{l=1}^{L-1}
¥sum_{i=1}^{s_l}
¥sum_{j=1}^{s_l + 1}
(¥Theta_{ji}^{(l)})^2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment