Skip to content

Commit

Permalink
Merge pull request #46 from cheerconi/master
Browse files Browse the repository at this point in the history
fix linRegVb and rvmRegVb
  • Loading branch information
sth4nth authored Mar 11, 2018
2 parents 2e96df7 + a716248 commit 5b53e9c
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 @@ -53,7 +53,7 @@
KLalpha = -a*log(b);
% q(beta)
e2 = sum((t-Ew'*X).^2);
invUX = U\X;
invUX = U'\X;
trXSX = dot(invUX(:),invUX(:));
d = d0+0.5*(e2+trXSX);
Ebeta = c/d;
Expand Down
2 changes: 1 addition & 1 deletion chapter10/rvmRegVb.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
KLalpha = -sum(a*log(b));
% q(beta)
e2 = sum((t-Ew'*X).^2);
invUX = U\X;
invUX = U'\X;
trXSX = dot(invUX(:),invUX(:));
d = d0+0.5*(e2+trXSX);
Ebeta = c/d;
Expand Down

0 comments on commit 5b53e9c

Please sign in to comment.