Questions tagged [gmm]

For questions about Gaussian mixture models (GMMs).

For questions about Gaussian mixture models (GMMs).

199 questions
3
votes
0 answers

gaussian mixture model how to fix a component

I am using gaussian mixture model in sklearn(python). A image is fitted on gaussian mixture model. Then, it will be clustered. (ex. component = 3, so some area is 0, and the others 1, 2) A tree area was 0, sky area was 1. But, I execute again, a…
hohodduck
  • 33
  • 10
3
votes
1 answer

kmeans results as initial parameters in Mclust

I am doing Gaussian mixture models. I have done kmeans on the dataset and I want to use the means, variances and the size for the initial parameters for the em algorithm in R. I found that the parameters is a list of 3 and I tried to do the same…
Birgit
  • 61
  • 1
  • 3
3
votes
2 answers

How can i use Alize System for Speaker Recognition on Android

I have successfully installed Alize in Android studio, However I'm unaware on generating the gmm/world.gmm file. Also, I'm unsure, whether we can use voice recordings in .3gp format. Can anyone guide me, A code snippet would be helpful. Before the…
3
votes
1 answer

How to fix ValueError in fitting GMM using sklearn.mixture.GaussianMixture?

I am trying to use GaussianMixture model for image segmetation, so I used 2 components, covariance matrix type="full" and tried to run using Spyder3.6 which comes with anaconda. Here's the code: from scipy.misc import imread, imshow from…
madhur4127
  • 276
  • 2
  • 13
3
votes
0 answers

Gaussian Mixture Model Different Importance to Dimensions

Is there any strategy or hack to give different importance to the different dimension of the data? That means, that distances into one direction are penalized harder than into other directions, when fitting a GMM on multidimensional data. Options I…
BaluJr.
  • 1,010
  • 2
  • 11
  • 25
3
votes
2 answers

How to calculate BIC and AIC for a gmm model in R using plm?

I'm estimating a GMM model using the plm library. I have different moment conditions. Z <- list(~YDWPP + ST_DEGREE, ~YDWPP + ST_DEGREE, ~YDWPP + ST_DEGREE, ~YDWPP + ST_DEGREE, ~YDWPP + ST_TRANSITIVITY, ~YDWPP + ST_STRUC_HOLE, ~YDWPP +…
Mario GS
  • 859
  • 8
  • 22
3
votes
1 answer

Sklearn GMM gives shifted gaussian peaks

I'm fitting a mixture of two gaussians to 1D data (over 1000 points). It seems that the peaks of the sum of two gaussians are shifted to the left relative to the peaks of the histogram. I assume this is due to my data having a cut-off at around 0.5.…
Anna
  • 85
  • 8
3
votes
0 answers

Block Diagonal Covariance Matrix for GMM using scikit learn

I am trying to implement SCGMM which incorporates spatial and color features in one GMM. Most of the papers have used decoupled covariance matrices. But in the SCIKIT Learn Mixture Library, there is no option to have block diagonal covariance matrix…
ISha
  • 151
  • 1
  • 2
  • 5
3
votes
1 answer

GMM - loglikelihood isn't monotonic

Yesterday I implemented a GMM (Gaussian Mixture Model) using expectation-maximization algorithm. As you remember, it models some uknown distribution as a mixture of gaussians which we need to learn its means and variances, and also the weights for…
Oria Gruber
  • 1,513
  • 2
  • 22
  • 44
2
votes
1 answer

How to visualize EM steps in GMM model?

I would like to visualize the EM steps taken in a GMM model but don't know how I would go about doing that. I've generated some synthetic data and fitted a model: a = np.random.normal(loc=[2,2,2], scale=1.0, size=(100,3)) b =…
Jean-Paul Azzopardi
  • 401
  • 1
  • 2
  • 10
2
votes
0 answers

System is exactly singular error when using pgmm (plm-package) in R

I am new to the plm package, but I need to do a system gmm on a dataset for my bachelor thesis in economics. I am trying to regress the GDP on the amount of railways stations built. This includes of course a lagged GDP variable and other controls,…
DLTS
  • 21
  • 3
2
votes
2 answers

R Mclust(data, G = 1) giving weird Sigma outputs if one variable is 'too constant'?

I'm trying to estimate Mu and Covariance of values assuming single normal distribution using MClust(, G = 1). I think it works fine most of the time. But if one of the variables consists of a repeated constant (e.g. all 0s, all 5s, etc.), it affects…
Civil
  • 59
  • 1
  • 7
2
votes
0 answers

get parameters of each gaussian curve predicted by Scikit learn Gaussian Mixture model?

I am trying to fit multiple Gaussian curves to my experimental data. The Gaussian mixture model was obtained using sci-kit learn Mixture models. The GM fit over my experimental data is shown in the image below. As you can see multiple Gaussian…
2
votes
1 answer

visualizing clusters extracted from MClust using ggplot2

I am analysing the distribution of my data using mclust (follow-up to Clustering with Mclust results in an empty cluster) Here my data for download https://www.file-upload.net/download-14320392/example.csv.html First, I evaluate the clusters present…
Jara
  • 57
  • 6
2
votes
1 answer

How to get log-likelihood for each iteration in sklearn GMM?

I am trying to fit a GMM in sklearn and i see that the model converges at around epoch 3 but i cannot seems to access the log-likelihood score computed at each epoch. from sklearn.mixture import GaussianMixture gmm = GaussianMixture(n_components=4,…
Anil Yadav
  • 149
  • 1
  • 14
1
2
3
13 14