MATLAB Answers

0

how does the gaussian mixture model regularization value work?

Asked by Hyunjin Paek on 9 Jul 2019
Latest activity Answered by Dheeraj Singh on 2 Aug 2019
Hello,
I used fitgmdist to make gmm with my data.
Since my model includes too many parameters(too high dimension), I got an error message that 'covariance matrix is ill-conditioned'.
And I saw the 'RegularizationValue' option in fitgmdist function. By setting Regularization value to 0.0001, I was able to make GMM.
I know that regularization value prevents one feature from blowing up or getting very small so it can be a solution for overfitting problem.
But I don't know how it works.
I mean..by adding very small positive number(i.e. 0.0001) on the diagonal of covariance matrix, how this action can make covariance matrix's condition better(positive definite)?

  0 Comments

Sign in to comment.

1 Answer

Answer by Dheeraj Singh on 2 Aug 2019
 Accepted Answer

By adding very small positive number (say c) on the diagonal of covariance matrix, you are basically shifting the eigen values by c, this makes all the eigen values positive hence making the covariance matrix positive definite.To avoid ill-conditioned covariance matrices please refer to the documentation of fitgmdist Tips Section

  0 Comments

Sign in to comment.