Questions tagged [gmm]

For questions about Gaussian mixture models (GMMs).

For questions about Gaussian mixture models (GMMs).

199 questions
2
votes
1 answer

GMM.fit segmentation fault

I am now trying to use GMM in my experiments. But I have the following issue. I am quite confused about the error. import tensorflow as tf class GMMDataLoader: def __init__(self, points, batch_size): self.points = points …
Alec Wang
  • 97
  • 3
2
votes
0 answers

R data.frame not show Chinese Character properly

Hello everyone. Above link is a data.frame in R, each column contains ten topics(in terms of single Chinese word). I got that as result of self-implemented Gaussian Mixture Model(for highly sparse matrix). As you can see, the appearance of R…
hack1nt0
  • 21
  • 2
2
votes
1 answer

Training of continuous densitiy HMMs with underflow in calculating densities

I have implemented the evaluation and training algorithms for HMM following the Rabiner Tutorial for a single oberservation sequence (based on MFCC data). For the forward and backward algorithm I have also included the proposed scaling to handle…
Daniel
  • 31
  • 2
2
votes
0 answers

Input is not invertible. [[Node: MatrixInverse_2=MatrixInverse[T=DT_FLOAT, adjoint=false, _device="/job:localhost/replica:0/task:0/cpu:0"](add_138)]]

I am trying to implement Gaussian Mixture Model using Tensorflow's tf.learn(skflow) but I am getting the following error. from tensorflow.contrib.factorization.python.ops import gmm as gmm_lib import random import numpy as np x =…
Rahul
  • 645
  • 1
  • 9
  • 21
2
votes
2 answers

How to plot the pdf of a 1D Gaussian Mixture Model with matplotlib

I want to plot a Gaussian Mixture Model. The following code allows me to plot 2 separate Gaussians, but where they intersect, the line is very sharp and not smooth enough. Is there a way to plot the pdf of a 1D GMM? def plot_data(): mu = [-6,…
RKM
  • 3,151
  • 9
  • 37
  • 50
2
votes
0 answers

How to use Gesture Recognition Toolkit (GRT) using its interface to train (HMM model) and test from datasets which have already been created?

I am currently working on a project-Air Writing using inertial sensors. Based on the 6-DOF (Degrees Of Freedom), accelerometer and gyroscope values received from the sensor placed on the finger, the system should identify the gesture made using the…
2
votes
1 answer

error using pyspark's GaussianMixtureModel (NegativeArraySizeException)

I'm in the process of exploring pyspark and have been running into an error while trying to fit a Gaussian Mixture Model. I've been trying to limit the total number of potential errors, and I've been able to replicate the error with a significantly…
william
  • 51
  • 3
2
votes
1 answer

How to represent 1D vector as sum of Gaussian curves with scipy/numpy?

UPD: Thanks, it works. I have an 1D-vector, which represents a histogram. It looks like sum of few gaussian functions: I've found curve_fit sample code on SO, but don't know how to modify it to receive more gaussian tuples (mu, sigma). I've heard…
olha
  • 2,132
  • 1
  • 18
  • 39
1
vote
0 answers

Hand recognition with matlab

I am trying to on going detect the edge of my fist from images, I am using Matlab environment. I don't know the lightness and colors of the image so I first photo the backround without the hand and for the next images I will reduse the backround…
1
vote
2 answers

R user function to run gmm model repeatedly using pgmm function

I have created a function to run gmm model repeatedly using pgmm function from plm package. here is the code. ``` run.gmm <- function(data, predictor, dep, controls, row.name = predictor, …
1
vote
1 answer

Is there some pre-defined statsmodels function that lets me use GMM together with Newey west standard errors?

I found statsmodels.sandbox.regression.gmm for gmm regressions but dont understand how I can use it with Newey West errors in a simple way. Maybe let me outline my specific case: I have only one explanatory variable and one dependent variable. this…
Gaggles
  • 11
  • 2
1
vote
1 answer

Value error: expected input data X have 1 features, but got 2 features during Gaussian Mixture Models

I am currently self learning how to use gaussian mixture models to detect anomalies, but facing some problems in it. I have looked at many blogs but they dont seem to explain what each line signifies. I am trying to figure out which point is an…
1
vote
0 answers

How can we get our data back from only GMM parameters?

(Sorry if a similar question had raised before).. if I fitted my data with Gaussian Mixture Model and got three parameters (Means, Covariances, Weights) with, for example, this python code: gmm = GaussianMixture(n_components=8,…
M.S.
  • 11
  • 1
1
vote
0 answers

Gaussian Mixture model log-likelihood to likelihood-Sklearn

I want to calculate the likelihoods instead of log-likelihoods. I know that score gives per sample average log-likelihood and for that I need to multiply score with sample size but the log likelihoods are very large negative numbers such as…
Sahar Atif
  • 11
  • 1
1
vote
0 answers

Error in using gmm function: Error in ar.ols(x, aic = aic, order.max = order.max, na.action = na.action, : 'order.max' must be < 'n.used'

Im trying to do a gmm using this data: X <- cbind(rep(1,800), data$Prices,data$Efectivity) delta <- data$delta_j_i Z <- cbind(rep(1,800),data$Price_Active_Ingredient,data$Mean_Price_Secundary_Ingredients) I'm performing the gmm in this way: start…
carles
  • 11
  • 1