How to initialize the parameter mu to zero of a Gaussian Mixture model ?
Show older comments
X = mat_cell;
[counts,binLocations] = imhist(X);
stem(binLocations, counts, 'MarkerSize', 1 );
xlim([-1 1]);
% inital kmeans step used to initialize EM
K = 2; % number of mixtures/clusters
rng('default');
cInd = kmeans(X(:), K,'MaxIter', 75536);
% fit a GMM model
options = statset('MaxIter', 75536);
gmm = fitgmdist(X(:), K,'Start',cInd,'CovarianceType','diagonal','Regularize',1e-5,'Options',options);
Here X is the input matrix and I would like to initialize only the sigma parameter of the GMM to zero. How can i proceed?
Accepted Answer
More Answers (1)
Richard Marveldoss
on 12 Jul 2017
0 votes
For a multivariate Gaussian distribution, the manner in which you construct your input datasets will vary. For example ,the below documentation contains a example where a dataset is generated using two bivariate Gaussian distribution. https://www.mathworks.com/help/stats/fitgmdist.html#examples
Categories
Find more on Gaussian Mixture Models in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!