Questions tagged [gmm]

For questions about Gaussian mixture models (GMMs).

For questions about Gaussian mixture models (GMMs).

199 questions
0
votes
1 answer

Adding new speaker to a pre-trained speaker recognition model

I have trained a deep neural network for speaker recognition(Trained on 64 different speakers).Next I want to add or delete a speaker from the model. Can anyone help me out with the coding part on how to do it, as I am new to voice recognition. Even…
0
votes
0 answers

Stata: Transformation of xtabond to xtabond2

I wrote my GMM regression for my dynamic panel data set with the xtabond command: xtabond dependVar var1L(2/2).Var2L(2/2).Var3 L(2/2).Var4 L(2/2).Var5, lags(1) twostep artest(2) vce(robust) noconstant level(90) Afterwards I wanted to carry out…
0
votes
1 answer

BIC score graph for GMM clustering looks very odd

I want to use BIC criterion to find the optimal number of clusters for GMM clustering. I plotted the BIC scores for cluster numbers 2 to 41, and get the attached curve. I have no idea how to interpret this, can someone help? For reference, this is…
0
votes
0 answers

Problem with xtabond regression for panel data in stata

I have a problem with the xtabond command. I would like to apply a GMM regression to my panel data. The state variables (two) should be lagged one period and the other variables (5) should be lagged two periods (the statistical approach is similar…
0
votes
0 answers

Issue with using statsmodels.sandbox.regression.gmm.GMM in python

I have a case in causal mediation analysis and I wanna estimate treatment effect using gmm (Generalized Method of Moments). So, I referenced this code. https://github.com/josef-pkt/misc/blob/master/notebooks/ex_gmm_gamma.ipynb and this question…
Eugene
  • 1
  • 1
0
votes
1 answer

Gaussian Mixture: minvalue must be less than or equal to maxvalue

In my exploratory analysis, I am currently using Gaussian Mixture Model to exclude outliers by plotting the contour plot for each phone model (a total of 4 unique models). I am using these 2 variables (r_max, b_max) to detect whether a point is an…
0
votes
1 answer

sklearn - sample from GaussianMixture without fitting

I would like to use a GaussianMixture for generating random data. The parameters should not be learnt from data but supplied. GaussianMixture allows supplying inital values for weights, means, precisions, but calling "sample" is still not…
Yiftach
  • 347
  • 1
  • 2
  • 12
0
votes
1 answer

Data is too long Error in R FlexmixNL package

I tried to search this online, but couldn't exactly figure out what my issue was. Here is my code: n = 10000 x1 <- runif(n,0,100) x2 <- runif(n,0,100) y1 <- 10*sin(x1/10) + 10 + rnorm(n, sd = 1) y2 <- x2 * cos(x2) - 2 * rnorm(n, sd = 2) x <- c(x1,…
Semzem
  • 73
  • 9
0
votes
1 answer

Gaussian mixture model - get the contour of given probability value : Matlab

I need to identify the 99% probability contour of a GMM fitted to data. Following this example, I'd like to be able to specify which contours to plot, and the x,y, of them. mu1 = [1 2]; Sigma1 = [2 0; 0 0.5]; mu2 = [-3 -5]; Sigma2 = [1 0;0 1]; X =…
Oliver Amundsen
  • 1,491
  • 2
  • 21
  • 40
0
votes
0 answers

Interpretation the BIC score graph

I have a plot with BIC scores: number of components and type of covariance matrix. It has some values positive and others negative. I do not know how to interpret them. I need to choose n_components and type of covariance matrix for constructing GMM…
0
votes
0 answers

How to train a GMM using different size datasets in python?

I'm trying to use a GMM to generate synthetic data based on 28 datasets of different size. The datasets consist in a list of coordinates (x, y, z) of the position of certain molecules I'm trying to replicate synthetically. For instance, suppose I…
0
votes
1 answer

Stargazer with result from plm::pgmm() gives 'Error: Unrecognized object type.'

Although stargazeris said to work with objects created by plm::pgmm() (see here) I get the error Error: Unrecognized object type when running the following code: require(pder) require(plm) require(stargazer) data("DemocracyIncome", package =…
0
votes
0 answers

How to assure that the covariance matrices are all positive definite in Pomigranate MultivariateGaussianDistribution

As in the ScikitLearn GaussianMixture model, reg_covar=1e-06 adds Non-negative regularization to the diagonal of covariance, which ensures covariance matrices are positive definite. sklearn.mixture.GaussianMixture(n_components=1, *,…
iforcebd
  • 87
  • 11
0
votes
0 answers

How can I plot the density instead of a line in ggplot2?

How can I make ggplot2::stat_function generate a density plot instead of geom = "line"? My_table$Distances is numeric mixmdl <- mixtools::normalmixEM(My_table2$Distances, k = 4) plot_GMM(mixmdl,4) mixmdl$posterior x <- mixmdl$x x <-…
0
votes
1 answer

Erase white pixels from an object moving at the border of the videoframe (GMM algorithm)

I am using the GMM-algorithm (BackgroundSubtractorMOG2) to find moving objects in a video. The output of this GMM-algorithm is a binary image with white pixels as the pixels that moved, and black pixels as background. I am looking for a way to…
Geox
  • 89
  • 7