Skip to content

Commit e1c19a5

Browse files
committed
refine mlpPred.m
1 parent dd161e4 commit e1c19a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

chapter05/mlpPred.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
% Y: p x n response matrix
88
% Written by Mo Chen (sth4nth@gmail.com).
99
W = model.W;
10-
L = length(W)+1;
1110
Y = X;
12-
for l = 2:L
13-
Y = sigmoid(W{l-1}'*Y);
11+
for l = 1:length(W)
12+
Y = sigmoid(W{l}'*Y);
1413
end

0 commit comments

Comments
 (0)