hmm icon indicating copy to clipboard operation
hmm copied to clipboard

Properly reconstruct sequence of states in Viterbi algorithm

Open olvb opened this issue 2 years ago • 0 comments

Hi, thanks a lot for the tutorial, I found it very intuitive.

However there is a mistake at the end of the part concerning the Viterbi algorithm. It is not possible to simply select the state with highest probability at each step. Doing this will not reconstruct properly the sequence that lead to the most likely final state.

Instead, we have to memorize all the best intermediate states and how they connect to each other. Then when we have selected our final state, we just have to "backtrack" the series of states that lead to it.

olvb avatar Sep 14 '22 14:09 olvb