Skip to content

Commit

Permalink
fix some demos
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Nov 15, 2018
1 parent 3f9d968 commit d858d5d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
6 changes: 3 additions & 3 deletions demo/ch04/logitBin_demo.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
d = 2;
k = 2;
n = 1000;
[X,y] = kmeansRnd(d,k,n);
[model, llh] = logitBin(X,y-1);
[X,t] = kmeansRnd(d,k,n);
[model, llh] = logitBin(X,t-1);
plot(llh);
t = logitBinPred(model,X)+1;
y = logitBinPred(model,X)+1;
figure
binPlot(model,X,y)
2 changes: 1 addition & 1 deletion demo/ch07/rvmBinEm_demo.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
plot(llh);
y = rvmBinPred(model,X)+1;
figure;
binPlot(model,X,y);
plotClass(X,y);
2 changes: 1 addition & 1 deletion demo/ch07/rvmBinFp_demo.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
plot(llh);
y = rvmBinPred(model,X)+1;
figure;
binPlot(model,X,y);
plotClass(X,y);
13 changes: 0 additions & 13 deletions demo/ch09/rvmBinEm_demo.m

This file was deleted.

0 comments on commit d858d5d

Please sign in to comment.