Skip to content

Commit

Permalink
Merge pull request #2 from intfloat/master
Browse files Browse the repository at this point in the history
fix a bug
  • Loading branch information
danluu committed Nov 16, 2014
2 parents ee18fc0 75d51e1 commit 8e1cf51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stackedae_exercise/stackedAECost.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 88,7 @@

% delta
d = cell(n 1);
d{n 1} = -(softmaxTheta' * (y - p)) .* a{n 1} .* (1 -a{n});
d{n 1} = -(softmaxTheta' * (y - p)) .* a{n 1} .* (1 -a{n 1});

for l = (n:-1:2)
d{l} = stack{l}.w' * d{l 1} .* a{l} .* (1-a{l});
Expand Down

0 comments on commit 8e1cf51

Please sign in to comment.