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
0
votes
0 answers

Hidden Markov Parameters

I am making a Hidden Markov Model for a maternity dataset in R. Lets say I want to observe the patterns in 1st, 2nd and 3rd pregnancy. In every pregnancy, I have two variables i.e Son and Daughter. But my model is taking Son and daughter as states…
0
votes
0 answers

Length of initial_probs is not equal to the number of states

I am new to R. While making a Hidden markov model we have to give the following parameters; initial prob, emission prob, transition prob, observations. But I am getting the following error Length of initial_probs is not equal to the number of…
0
votes
1 answer

Gaussian hidden markov model

I am following a tutorial from this link http://www.blackarbs.com/blog/introduction-hidden-markov-models-python-networkx-sklearn/2/9/2017 in order to implement hidden markov model in my example. I have 2 hidden states and 2 observed states . As I…
Rawia Sammout
  • 121
  • 1
  • 16
0
votes
1 answer

Hidden Markov Models: Handling deletion / insertion

i am reading and trying to understand HMM and the area i am looking it is for spell correction. One thing i dont get is how does it handle insertion or deletion. Lets say there is character level model in which expected states are 'c', 'a', 't'.…
0
votes
0 answers

python GMMHMM fit(X)

I am making a project ragrading to sign language recognition by Surface EMG signal. Now, I want to train a GMMHMM model by an array named 'single'. Its shape is (2520, 840). for single in Norm_Feat_Vsplit: # print(shape(single)) # (180, 840) …
0
votes
1 answer

HMMLearn: Too Many Values to Unpack

I'm trying to use hmmlearn to get the most likely hidden state sequence from a Hidden Markov Model, given start probabilities, transition probabilities, and emission probabilities. I have two hidden states and four possible emission values, so I'm…
anon_swe
  • 8,791
  • 24
  • 85
  • 145
0
votes
1 answer

error while fitting a hmm.MultinomialHMM with sequences of observed data

I'm trying to fit a multinomial model with my observed data. I have a dataset containing trajectories with different lengths. Since my observations are discrete I try to fit with a multinomial model. The number of observation symbols is 3147 and the…
0
votes
1 answer

HMM 3-state phone model and transition probability

I read this question 3-state phone model in Hidden Markov Model (HMM) and I understood what 3-state means, but still don't understand why transition matrix made with (state+2)*(state+2) matrix. This is what I got. I have datas about 21 phones. …
HyeonWoo
  • 17
  • 3
  • 9
0
votes
0 answers

HMMLearn GaussianHMM not getting trained correctly

I have sequence of 3 observations and I have three such sequence of observations. There are three hidden states. I am using GaussianHMM of HMMlearn library. state_machine = GaussianHMM(n_components=3, covariance_type="full", n_iter=1000) …
0
votes
1 answer

Sequence of Predictions from HMMLearn

Im working along with this documentation, but I can't figure out how to extract the sequence of predictions from the test data. I have trained the model with .fit(X_train), but the following: unseen_hidden_states = model.predict(X_test) Returns an…
redress
  • 1,399
  • 4
  • 20
  • 34
0
votes
2 answers

AIND- Sign_language_recognition

I am working on sign language recognition on GitHub available here https://github.com/udacity/AIND-Recognize. I have a problem on a rubric of Model selection. When I run this cell there import warnings from hmmlearn.hmm import GaussianHMM def…
0
votes
1 answer

How to use hmmlearn to classify English text?

I want to implement a classic Markov model problem: Train MM to learn English text patterns, and use that to detect English text vs. random strings. I decided to use hmmlearn so I don't have to write my own. However I am confused about how to train…
Superbest
  • 25,318
  • 14
  • 62
  • 134
0
votes
0 answers

How do to train a HMM classifier with multiple classes?

I have trained HMM for each class separately, and selected a highest likelihood model given the observation sequence. However, my requirement is to build single HMM for all classes. Each class can have multiple hidden states from S1,....Sn. For…
0
votes
0 answers

hmmlearn: Using GausianHMM, how does one calculate the probability of an observation (as opposed to the probability of a state)

i'm new to the HMM universe. I've followed the tutorials using a GaussianHMM machine learner, and they work but i was just wondering how i can use the code to display the probability of an observation given the most likely sequence, assuming i have…
kw t
  • 1
0
votes
1 answer

Hidden Markov Model converging to one state using hmmlearn

I have a machine learning problem that I'm trying to solve. I'm using a Gaussian HMM (from hmmlearn) with 5 states, modelling extreme negative, negative, neutral, positive and extreme positive in the sequence. I have set up the model in the gist…
swmfg
  • 1,279
  • 1
  • 10
  • 18
1 2 3
8
9