Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Mar 9, 2017
1 parent ccedd27 commit 88f8e5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chapter09/mixGaussPred.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [label, R] = mixGaussPred(X, model)
function [label, R] = mixGaussPred(model, X)
% Predict label and responsibility for Gaussian mixture model.
% Input:
% X: d x n data matrix
Expand Down
2 changes: 1 addition & 1 deletion demo/ch09/mixGaussEm_demo.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
figure;
plotClass(X1,z1);
% predict
z2 = mixGaussPred(X2,model);
z2 = mixGaussPred(model,X2);
figure;
plotClass(X2,z2);

0 comments on commit 88f8e5a

Please sign in to comment.