Skip to content

Commit

Permalink
Update nn_simple.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bfortuner committed Feb 28, 2018
1 parent 6f46050 commit eefd87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/nn_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def backprop(x, y, Wh, Wo, lr):
yHat = feed_forward(x, Wh, Wo)

# Layer Error
Eo = (O - y) * relu_prime(Zo)
Eo = (yHat - y) * relu_prime(Zo)
Eh = Eo * Wo * relu_prime(Zh)

# Cost derivative for weights
Expand Down

0 comments on commit eefd87d

Please sign in to comment.