Skip to content

Commit

Permalink
refined doc of ch06
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Feb 19, 2016
1 parent 65093cd commit 65aa517
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion chapter03/linPlot.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function linPlot(model, X, t)
% Plot linear function for 1d data data
% Input:
% model: trained struct
% model: trained model structure
% X: 1 x n data
% t: 1 x n response
% Written by Mo Chen ([email protected]).
Expand Down
2 changes: 1 addition & 1 deletion chapter03/linReg.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% t: 1 x n response
% lambda: regularization parameter
% Output:
% model: trained struct used by linPred
% model: trained model structure
% Written by Mo Chen ([email protected]).
if nargin < 3
lambda = 0;
Expand Down
2 changes: 1 addition & 1 deletion chapter03/linRegFp.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% X: d x n data
% t: 1 x n response
% Output:
% model: trained struct used by linPred
% model: trained model structure
% llh: loglikelihood
% Written by Mo Chen ([email protected]).
if nargin < 3
Expand Down
2 changes: 1 addition & 1 deletion chapter04/binPlot.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function binPlot(model, X, t)
% Plot binary classification result for 2d data
% Input:
% model: trained struct
% model: trained model structure
% X: 2 x n data matrix
% t: 1 x n label
% Written by Mo Chen ([email protected]).
Expand Down
2 changes: 1 addition & 1 deletion chapter04/logitBin.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% t: 1 x n label (0/1)
% lambda: regularization parameter
% Output:
% model: trained model
% model: trained model structure
% llh: loglikelihood
% Written by Mo Chen ([email protected]).
if nargin < 3
Expand Down
2 changes: 1 addition & 1 deletion chapter04/logitMn.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% t: 1 x n label (1~k)
% lambda: regularization parameter
% Output:
% model: trained model
% model: trained model structure
% llh: loglikelihood
% Written by Mo Chen ([email protected]).
if nargin < 3
Expand Down
2 changes: 1 addition & 1 deletion chapter06/knKmeans.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
% Output:
% label: 1 x n clustering result label
% energy: optimization target value
% model: trained struct, used by predict
% model: trained model structure
% Reference: Kernel Methods for Pattern Analysis
% by John Shawe-Taylor, Nello Cristianini
% Written by Mo Chen ([email protected]).
Expand Down
2 changes: 1 addition & 1 deletion chapter06/knPca.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% q: target dimension
% kn: kernel function
% Ouput:
% model: struct trained, used by predit
% model: trained model structure
% Written by Mo Chen ([email protected]).
if nargin < 3
kn = @knGauss;
Expand Down
2 changes: 1 addition & 1 deletion chapter06/knReg.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% t: 1 x n response
% lambda: regularization parameter
% Output:
% model: trained struct used by linPred
% model: trained model structure
% Written by Mo Chen ([email protected]).
if nargin < 4
kn = @knGauss;
Expand Down

0 comments on commit 65aa517

Please sign in to comment.