Questions tagged [hmmlearn]

hmmlearn is a scikit-learn offspring implementing unsupervised learning and inference in Hidden Markov Models.

hmmlearn is a scikit-learn offspring implementing unsupervised learning and inference in Hidden Markov Models.

130 questions
1
vote
0 answers

Cannot run GMMHMM (Hidden Markov Model with Gaussain Mixture emissions in hmmlearn) with high number of mixtures

I'm trying to use Gaussian Mixture Model within the hmmlearn package using the following configuration for a time series with 49792 samples: model = GMMHMM(n_components=40, n_mix = 5, tol = 1e-6, covariance_type = "full", n_iter=100,…
1
vote
1 answer

Interpreting the convergence report of hmmlearn

The hmmlearn reference page and the code mentions the usage of the "verbose" keyword as follows: "verbose (bool, optional) – When True per-iteration convergence reports are printed to sys.stderr. ". During runs, I can see the a 2-column output for…
1
vote
0 answers

How to Fit my continuous data with hmmlearn GMMHMM library in python?

I am trying to implement HMM Learning/training with the continuous data set which is in sequential form. I have tried to construct a new HMM training with Gaussian Mixture/EM Algo, but I have been facing some issues, so i switch to hmmlearn library…
Mari
  • 698
  • 1
  • 8
  • 27
1
vote
1 answer

predicting next observation using HMMLearn.multinomialhmm(discrete hmm)

i have implemented a HMM using hmmlearn: states = ['healthy','sick'] observations = ['sleeping','eating','pooping'] model = HMM(n_components=2) model.n_features = 3 model.startprob_ = [0.7, 0.3] model.transmat_ = [ [0.8, 0.2], [0.4,…
1
vote
1 answer

ImportError: cannot import name 'distribute_covar_matrix_to_match_covariance_type'

I'm trying to run the code in the hmmlearn tutorial but I get an import error from the removed method 'distribute_covar_matrix_to_match_covariance_type'. I don't know how to install a version of hmmlearn in Anaconda that does not cause this…
Harreboy
  • 11
  • 1
1
vote
0 answers

How do I fit my hmmlearn algorithm with MFCC arrays? (Mel Frequency Cepstrel Coefficients) hmmlearn.GaussianHMM.fit only takes sequences

I am working on a past kaggle competition problem where I am writing a speech recognition algorithm. With Automatic Speech Recognition (ASR) algorithms, it is customary to process the data into MFCCs (Mel Frequency Cepstrel Coefficients). Using a…
1
vote
0 answers

How to increase HMM score on training samples with `hmmlearn`

Speech Recognizer for 7 fruits (source code) GaussianHMM is used. Each 7 classes has balanced dataset, precisely 15 audios per class. I have tried using 3-5 states but the scores are still low. All other settings are default, which is the ergodic…
Do Wen Rei
  • 23
  • 5
1
vote
0 answers

Put the contents of the TXT document into the HMM as observations

if __name__ == "__main__": A = np.random.random([3,3]) B = np.random.random([3,2]) pi = np.random.random(3) hmm = HMM(pi, A, B) observation = ['red','write'] # here I need input some observation to the HMM model to predict the Original model…
1
vote
1 answer

emission probabilities for HMM in R

How can we calculate Emission probabilities for a Hidden Markov Model (HMM) in R? As for calculating Transition Probabilities we use function tr <- seqtrate(exampledata) and this function returns a Transition Matrix. Example data is a sequential…
1
vote
1 answer

Hmmlearn classification usage

I'm trying to learn a model with hmmlearn in order to make a classification on my dataset. The dataset have a list of sequences having different length. Each sequence consists of event emission. For example: ID1: ['1', '10', '8', '15'] ID2: ['1',…
1
vote
0 answers

Symbols instead of digits in Multinomial (discrete) emission from hmmlearn

I would like to generate samples of symbols, not a digits from hmm.MultinomialHMM. My code for instance: model = hmm.MultinomialHMM(n_components=2) tr =np.array([[0.8, 0.2], [0.3, 0.7]]) model.n_features = 4 em =…
Denis
  • 306
  • 1
  • 3
  • 10
1
vote
2 answers

Hidden Markov Model python

I have a time series of position of a particle over time and I want to estimate model parameters of two HMM using this data (one for the x axis, the other for the y axis). I'm using the hmmlearn library, however, it is not clear to me how should I…
donut
  • 628
  • 2
  • 9
  • 23
1
vote
1 answer

Error installing hmm

I am getting the following error installing hmm. I am not able to understand howto solve this.Please provide some solution. I have all the necessary prerequisites creating build\temp.win-amd64-3.6\Release\hmmlearn cl.exe /c /nologo /Ox /W3 /GL…
Vibhuti
  • 702
  • 1
  • 7
  • 21
1
vote
0 answers

Implementation of Hidden Markov Model for GENE Prediction in Python

I am working on my college project where i need to find out the gene in the DNA with the help of Hidden Markov model. I am trying to implement the algorithm using the hmm-learn where i fails every time. Can you please tell me how to do the code…
karthikmunna
  • 139
  • 1
  • 2
  • 14
1
vote
0 answers

trying to install hmmlearn but getting is not a supported wheel on this platform

I am trying to install hmmlearn however I am having issues. My version of python, Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) I have checked that my pip is up to date as well. c:\users\xxx\pip install…
mHelpMe
  • 6,336
  • 24
  • 75
  • 150
1 2 3
8 9