How to find an optimal of Gaussian mixture component proportion number?

2 Ansichten (letzte 30 Tage)
Hi everyone
I have a weekday data that I attached file in this question. I try to find an optimal number of Gaussian mixture component proportions by using the code below.
AIC = zeros(1,10);
GMModels = cell(1,10);
for k = 1:10
GMModels{k} = fitgmdist(weekday_data,k,'Options',statset('Display','final','MaxIter',1500,'TolFun',1e-5));
AIC(k)= GMModels{k}.AIC;
[minAIC,numComponents] = min(AIC);
BestModel = GMModels{numComponents}
Unfortunately, the Matlab software shows the error like this :
"Ill-conditioned covariance created at iteration 2."
and others descpriptions :
"Error in (line 98) gmcluster(X,k,start,reps,CovType,SharedCov,RegV,options,probtol);
Error in fitgmdist (line 130) gm =,k,varargin{:});
Error in test (line 58) GMModels{k} = fitgmdist(weekday_data,k,'Options',statset('Display','final','MaxIter',1500,'TolFun',1e-5));" I don't know how to fix these error.
Are there anyone can solve this problem ?
Thank you very much.

Antworten (0)


Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by