Questions tagged [gmm]

For questions about Gaussian mixture models (GMMs).

For questions about Gaussian mixture models (GMMs).

199 questions
2
votes
1 answer

Clustering with Mclust results in an empty cluster

I am trying to cluster my empirical data using Mclust. When using the following, very simple code: library(reshape2) library(mclust) data <- read.csv(file.choose(), header=TRUE, check.names = FALSE) data_melt <- melt(data, value.name = "value",…
Jara
  • 57
  • 6
2
votes
0 answers

What does it mean when a covariance matrix values are all the same in hmmlearn - GMMHMM?

I am working with GMMHMM from hmm learn for speaker recognition. After training the model, I found that all the values in the covariance matrix (covars_) all have the same values. I initialised my hmm as follows model = hmm.GMMHMM(n_components=5,…
2
votes
2 answers

How can implement EM-GMM in python?

I have implemented EM algorithm for GMM using this post GMMs and Maximum Likelihood Optimization Using NumPy unsuccessfully as follows: import numpy as np def PDF(data, means, variances): return 1/(np.sqrt(2 * np.pi * variances) + eps) *…
Mario
  • 1,631
  • 2
  • 21
  • 51
2
votes
0 answers

How to fix broken data in feature extraction/pre-processing in speech recognition?

i am very new in machine learning. I stumble on this source code on github that has no database, so i decided to use my own database. This code is to recognize speaker with MFCC and GMM-UBM. But when i try to run the code, i got this error…
lorita
  • 21
  • 2
2
votes
1 answer

Python sklearn- gaussian.mixture how to get the samples/points in each clusters

I am using the GMM to cluster my dataset to K Groups, my model is running well, but there is no way to get raw data from each cluster, Can you guys suggest me some idea to solve this problem. Thank you so much.
2
votes
0 answers

How to correctly unpickle a file (ModuleNotFoundError)?

I saved a model using Pickle using this code below: picklefile = path.split("-")[0]+".gmm" Pickle.dump(gmm,open(dest + picklefile,'w')) print '+ modeling completed for person:',picklefile," with data point = ",list_features.shape list_features =…
2
votes
1 answer

Plot gaussian sub-populations from GMM model

I made a GMM model using scikit learn on python as outlined here: x = df1['DNA_2'] y = df1['DNA_1'] X = np.column_stack((x, y)) # create a 2D array from the two lists mod2 = GaussianMixture(n_components=5, covariance_type='tied', random_state=2) #…
startswithH
  • 309
  • 4
  • 14
2
votes
0 answers

Gaussian Mixture Model for Background Subtraction

This is more like something that I would like to discuss with the community rather than something that I am seeking for an absolute answer. I am trying to implement the GMM based background subtraction algorithm from scratch. Apparently, OpenCV…
2
votes
1 answer

Spark / PySpark - GMM Clustering returning a perfect equiprobability and only 1 cluster

I try to apply a GMM clustering algorithm (as in https://spark.apache.org/docs/latest/ml-clustering.html) on a given DataFrame as following : vector.show(1) ID | Features 33.0 |…
Olscream
  • 127
  • 1
  • 14
2
votes
0 answers

How to create a Gaussian Mixture Model in Python?

For reproducibility reasons, I am sharing the few datasets here. The dataset has a format of the following. 0.080505471,10 0.080709071,20 0.080835753,30 0.081004589,40 0.081009152,30 0.181258811,41 0.181674244,40 From column 2, I am reading the…
user10553396
2
votes
2 answers

different results obtained with GMM

I would like to cluster using GMM the classical iris dataset. I got the dataset from: https://gist.github.com/netj/8836201 and my program so far is the following: import numpy as np import pandas as pd import matplotlib.pyplot as plt from…
Little
  • 3,363
  • 10
  • 45
  • 74
2
votes
0 answers

GMM and MFCC for language identification

I am new to machine learning domain. Currently, I am trying to implement a audio language detection system, based on MFCC, delta, delta delta and Mel Spectrum Coefficients of any audio file. These features are extracted using librosa. Librosa…
Amit K.S
  • 21
  • 2
2
votes
1 answer

Gaussian Mixture Model (GMM) giving only one cluster

I have a dataset that has 70 columns and 4.4 million rows. I want to perform clustering on it. I did TF-IDF first then I used clustering with K-means, Bisecting k-means and Gaussian Mixture Model (GMM). While the other techniques give me the…
Fisseha Berhane
  • 2,533
  • 4
  • 30
  • 48
2
votes
0 answers

How to extract R sqr and adjusted R_squared in gmm estimation

The below code perfectly provides my gmm estimates for 216 rolling windows. gmm_list <- lapply(1:(length(ALLX$DE)-24), function(i) { tmp <- ALLX[i:(i+23),] DE <- as.matrix(as.numeric(tmp$DE)) p <- nrow(DE) rmrf_local <-…
Enrico Dace
  • 115
  • 10
2
votes
1 answer

Cholesky decomposition error while using GMM in Tensorflow

I face this strange problem while using GMM in Tensorflow. InvalidArgumentError (see above for traceback): Cholesky decomposition was not successful. The input might not be valid. The code I am using shows below. from…
Keshawn Hsieh
  • 185
  • 1
  • 8
1 2
3
13 14