Skip to content

Commit 92c8220

Browse files
committed
fix mlp
1 parent 66a59ca commit 92c8220

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chapter05/mlp.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
eta = 1/size(X,2);
1212
h = [size(X,1);h(:);size(T,1)];
1313
L = numel(h);
14-
W = cell(L-1);
14+
W = cell(L-1,1);
1515
for l = 1:L-1
1616
W{l} = randn(h(l),h(l+1));
1717
end
18-
Z = cell(1,L);
18+
Z = cell(L,1);
1919
Z{1} = X;
2020
maxiter = 200;
2121
mse = zeros(1,maxiter);

0 commit comments

Comments
 (0)