Open
Description
Hi,
I am confused wrt lines 26 and 27 of the viterbi implementation:
trellis[:, t] = (trellis[:, t-1, None].dot(self.Obs(obs[t]).T) * self.transProb).max(0) backpt[:, t] = (np.tile(trellis[:, t-1, None], [1, self.N]) * self.transProb).argmax(0)
I am not able to understand why there is no dot product happening in the second line. Why multiply only with transProb
without taking obs
into account?
Please help.