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

Train HMM using MALLET

I am very new in using MALLET. I need to have a library of HMM for sequence labelling task. I already look at Sequence Tagging Developer's Guide, but i am unable to understand that how can I train HMM. I have a list of Hidden States, a list of…
Susmita Sadhu
  • 67
  • 1
  • 2
  • 16
1
vote
1 answer

Is the GMMHMM in hmmlearn running without bugs for any n_samples size?

First of all my hmmlearn version is 0.3.0b (installed using conda). I am trying to implement a GMMHMM model in hmmlearn but I am getting: ValueError: n_samples=3 should be >= n_clusters=5 To become more specific I have a model of 4 states and 5…
mrt
  • 339
  • 1
  • 2
  • 14
1
vote
1 answer

Can't understand the difference between these parameters in GaussianHMM()

Can someone explain me the difference between the parameters transmat_ andtransmat_prior, when I setup the model ( e.g. GaussianHMM() in hmmlearn.hmm )? class hmmlearn.hmm.GaussianHMM( n_components = 1, …
mrt
  • 339
  • 1
  • 2
  • 14
1
vote
1 answer

Learn characters sequences using hmmlearn in Python

Here is my problem, I'm trying to teach a Hidden Markov Models using hmmlearn. I'm new to the language, and I have some difficulties to understand the differences between lists and arrays. Here is my code: from hmmlearn import hmm from babel import…
Kahsius
  • 747
  • 2
  • 7
  • 18
1
vote
0 answers

how shall I calculate "predict" by hand after "GaussianHMM.fit() " instead of "predict()"?

I do as below: hmm=GaussianHMM(n_components=5,covariance_type='diag',n_iter=500).fit(X) Now I want to predict 'x';and I know I can do it by code: hmm.predict(x); but shall I see the some parameters of "hmm" and calculate it by hand ? The simple…
Henry
  • 75
  • 7
1
vote
0 answers

How to parse input characters when using DiscreteDistribution

I would like to use Hidden Markov Model implementing by Pomegranate(a python API https://pomegranate.readthedocs.io/en/latest/index.html) and I would like to initialize my Markov model by specifying a discrete distribution. Since it is discrete,…
starry1990
  • 121
  • 1
  • 6
1
vote
1 answer

Predict the next state in an HMM with the help of hmmlearn Python library

I am new to statistical analysis. I will give a detailed description of my problem as follows: I have a data set as follows: ObjectID Timestamp State 1 t1 1 1 t2 3 1 …
1
vote
0 answers

Can't get gridSearchCV to work for hmmlearn estimator

I've got a hmm which I can train by passing the fit function a list 'merged' of all training sequences concatenated after each other, and a list 'all_lengths' of all of the individual sequence lengths model =…
Tim Nederveen
  • 135
  • 1
  • 12
1
vote
0 answers

python - hmmlearn with custom emisison probabilities

I am working on a hmm for financial time series price data using the hmmlearn package (http://hmmlearn.readthedocs.io/en/latest/). I would like to implement a 2 or three state model to fit my data on. However I would like to have different…
1
vote
1 answer

import error in python hmmlearn

I am trying to install python hmmlearn library to build continuous HMM. I have installed all the dependencies and the hmmlearn library from GitHub. The installation completes successfully. ... Processing dependencies for hmmlearn==0.2.1 Searching…
shaifali Gupta
  • 380
  • 1
  • 4
  • 16
1
vote
1 answer

How to fit multiple sequences with GMMHMM?

I have a problem with the Python hmmlearn library. This is that I have several training sets and I would like to have one Gaussian mixture hmm model to fit them. Here is an example working with multiple sequences. X = np.concatenate([X1,…
Cody
  • 11
  • 1
1
vote
0 answers

ImportError: No module named hmm

I am trying to read this module on the Jupyter and I am getting this error: --------------------------------------------------------------------------- ImportError Traceback (most recent call…
AnkP
  • 631
  • 2
  • 9
  • 18
1
vote
2 answers

how to get emission matrix from GaussianHMM model in hmmlearn?

I want to export the trans matrix, and emission matrix from GaussianHMM in hmmlearn, and use those matrices as model parameters in forward algorithm written by c++, it's clear that "transmat_" attribute is the trans matrix,but how to get the…
fla888
  • 67
  • 1
  • 8
1
vote
0 answers

Python: passing multiple LARGE sequences through hmmlearn

So I am trying to train a very large feature array for hidden markov model: 700 x (400 x 4122), where each 400x4122 mini-array is a sequence of observed samples across 400 time stamps with 4122 features. There is a total of 700 such sequences,…
Andy
  • 175
  • 1
  • 7
1
vote
3 answers

Pip not installing package properly

So I am trying to get hmmlearn working in Jupyter, and I have come across an error while installing Hmmlearn using pip. I have tried this solution, but it didn't work. It seems to me that pip does install the _hmmc file, but it does so incorrect.…
1 2 3
8 9