Skip to content

Commit

Permalink
fix issue PRML#38 logitBinPred.m
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Oct 9, 2016
1 parent ad6c784 commit 19e39db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter04/logitBinPred.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
% Written by Mo Chen ([email protected]).
X = [X;ones(1,size(X,2))];
w = model.w;
p = exp(-log1pexp(w'*X));
p = exp(-log1pexp(-w'*X));
y = round(p);

0 comments on commit 19e39db

Please sign in to comment.