Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed EC typo
  • Loading branch information
rcc02007 committed Nov 13, 2017
1 parent 35e7061 commit a053027
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extra_credit/README.md
Expand Up @@ -41,7 +41,7 @@ and gradient

![costgrad](./equations/costgrad.png)

where ![x](./equations/x.png) is the k-th value of temperature raised to the i-th power (0, and 1)
where ![x](./equations/x.png) is the i-th value of temperature raised to the k-th power (0, and 1)

a. edit `cost_logistic.m` so that the output is `[J,grad]` or [cost, gradient]

Expand Down
Binary file modified extra_credit/equations/cost.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion extra_credit/equations/cost.tex
@@ -1,2 +1,2 @@
J(a_{0},a_{1})=1/m\sum_{i=1}^{n}\left[-y_{i}\log(\sigma(t_{i}))-(1-y_{i})\log((1-\sigma(t_{i})))\right]
J(a_{0},a_{1})=\sum_{i=1}^{n}\left[-y_{i}\log(\sigma(t_{i}))-(1-y_{i})\log((1-\sigma(t_{i})))\right]

Binary file modified extra_credit/equations/costgrad.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion extra_credit/equations/costgrad.tex
@@ -1,2 +1,2 @@
\frac{\partial J}{\partial a_{i}}=1/m\sum_{k=1}^{N}\left(\sigma(t_{k})-y_{k}\right)x_{k}^{i}
\frac{\partial J}{\partial a_{k}}=\sum_{i=1}^{N}\left(\sigma(t_{k})-y_{k}\right)x_{i}^{k}

Binary file modified extra_credit/equations/sigma.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified extra_credit/equations/t.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified extra_credit/equations/x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a053027

Please sign in to comment.