-
I'm trying to run the tutorial of the Hidden Markov Model in Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-75-generic x86_64) and Python 3.9.10. I get this output: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 51/51 [00:01<00:00, 29.28it/s] I understand that emissionprob_ does not have the proper shape, but I don't know how to fix the code. Any help will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @ffavelar, thanks for raising this issue! It looks like model = hmmlearn.hmm.MultinomialHMM(
n_components=n_hidden_states,
init_params='',
verbose=True,
n_iter=100 # maximum number of iterations
) and change it to: model = hmmlearn.hmm.CategoricalHMM(
n_components=n_hidden_states,
init_params='',
verbose=True,
n_iter=100 # maximum number of iterations
) Then hopefully everything should still work as before, but let me know if you have more issues |
Beta Was this translation helpful? Give feedback.
Hi @ffavelar, thanks for raising this issue! It looks like
MultinomialHMM
has been renamed toCategoricalHMM
, so in your scriptHiddenMarkovModel.py
you will need to find the line:and change it to:
Then hopefully everything should still work as before, but let me know if you have more issues