Skip to content

Commit

Permalink
refine mlpPred.m
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Jun 1, 2017
1 parent dd161e4 commit e1c19a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions chapter05/mlpPred.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
% Y: p x n response matrix
% Written by Mo Chen ([email protected]).
W = model.W;
L = length(W)+1;
Y = X;
for l = 2:L
Y = sigmoid(W{l-1}'*Y);
for l = 1:length(W)
Y = sigmoid(W{l}'*Y);
end

0 comments on commit e1c19a5

Please sign in to comment.