Error using hmmviterbi (line 142) A zero transition probability was encountered from state 1. Please provide more data or PseudoTransition information.

7 views (last 30 days)

Answers (2)


Devon Martin
Devon Martin on 19 Nov 2020
I had the same problem. For me, it wasn't the transition matrix at all; it was the emission matrix. I used too many hidden states and some of them gave zero columns in the emission matrix. Once the hmmviterbi got into one of these states, it didn't know where to go. I solved it by making educated guesses on what state should be preferred at those given states, so that now there's at least one entry at these hidden states.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by