When called e.g. with "viterbi([anger, disgust, disdain, surprise, fear], [7,7,7,7,7], X)." several results appear. This should not be - trace what's happening...
When fitting data with the multinomial HMM,
- First, the number of symbols is undefined
- Second, it crashes when unpacking a shape on the first line of the forward pass.
Here is how to reproduce the…