Azzera filtri
Azzera filtri

Problems with gmdistribution.fit

4 visualizzazioni (ultimi 30 giorni)
Bank Yin
Bank Yin il 18 Lug 2014
Modificato: Star Strider il 18 Lug 2014
Hi all,
I'm trying to do clustering with gm. I tried this code:
opts = statset('MaxIter', 300, 'Display', 'iter');
%Init Randomly
gm = gmdistribution.fit(braindata, nsegments, 'Regularize', 1e-6, 'Options', opts);
where braindata is a data matrix(voxel*protein, 1478071*11) and nsegments is 8.
And I got this error:
Error using gmdistribution.fit (line 136)
The following column(s) of data are effectively constant: 6 7 8 9 10 11.
Error in reducedSegbrain_gmix (line 119)
gm = gmdistribution.fit(braindata, nsegments, 'Regularize', 1e-6, 'Options', opts);
Is there any workaround to this?
Thanks.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by