Forward–backward algorithm: Difference between revisions

Content deleted Content added
Undid revision 654797958 by 79.165.161.94 (talk)
Undid revision 654768734 by 79.165.161.94 (talk)
Line 337:
f_curr[st] = e[st][x_i] * prev_f_sum
sum_prob = sum(f_curr.values())
for st in states:
f_curr[st] /= sum_prob # normalising to make sum == 1
 
fwd.append(f_curr)
f_prev = f_curr