Skip to content

Error with HMM analysis #117

Answered by p-j-smith
ffavelar asked this question in Q&A
Jul 25, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi @ffavelar, thanks for raising this issue! It looks like MultinomialHMM has been renamed to CategoricalHMM, so in your script HiddenMarkovModel.py you will need to find the line:

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

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ffavelar
Comment options

@p-j-smith
Comment options

@ffavelar
Comment options

@p-j-smith
Comment options

Answer selected by p-j-smith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants