Skip to content

Commit

Permalink
make code consistent for linRegVb and rvmRegVb
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Mar 11, 2018
1 parent 5b53e9c commit 7d7c3aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chapter10/linRegVb.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
KLw = -sum(log(diag(U)));
% q(alpha)
w2 = dot(Ew,Ew);
invU = U\I;
invU = U'\I;
trS = dot(invU(:),invU(:));
b = b0+0.5*(w2+trS); % 10.95
Ealpha = a/b; % 10.102
Expand Down
2 changes: 1 addition & 1 deletion chapter10/rvmRegVb.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
KLw = -sum(log(diag(U)));
% q(alpha)
w2 = Ew.*Ew;
invU = U\I;
invU = U'\I;
dgS = dot(invU,invU,2);
b = b0+0.5*(w2+dgS);
Ealpha = a./b;
Expand Down

0 comments on commit 7d7c3aa

Please sign in to comment.