Skip to content

Commit

Permalink
tweak mlpRegPred.m
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Nov 20, 2018
1 parent 2fb3339 commit b63676b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions chapter05/mlpRegPred.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
W = model.W;
b = model.b;
T = length(W);
Z = cell(T+1,1);
Z{1} = X;
Y = X;
for t = 1:T-1
Z{t+1} = tanh(W{t}'*Z{t}+b{t});
Y = tanh(W{t}'*Y+b{t});
end
Y = W{T}'*Z{T}+b{T};
Y = W{T}'*Y+b{T};

0 comments on commit b63676b

Please sign in to comment.