24 lines
671 B
Matlab
24 lines
671 B
Matlab
% implements Param_Est, returns the parameters for each Multivariate Gaussian
|
|
% (m1: learned mean of features for class 1, m2: learned mean of features
|
|
% for class 2, S1: learned covariance matrix for features of class 1,
|
|
% S2: learned covariance matrix for features of class 2)
|
|
function [m1 m2 S1 S2] = Param_Est(training_data, training_labels, part)
|
|
|
|
% Parameter estimation for 3 different models described in homework
|
|
if(strcmp(part, '3'))
|
|
% TODO: compute parameters for model 3
|
|
|
|
elseif(strcmp(part, '2'))
|
|
% TODO: compute parameters for model 2
|
|
|
|
elseif(strcmp(part, '1'))
|
|
% TODO: compute parameters for model 1
|
|
end
|
|
|
|
end % Function end
|
|
|
|
|
|
|
|
|
|
|
|
|