Forward–backward algorithm: Difference between revisions

Content deleted Content added
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Python example: Removed unnecessary initialisations of b_prev and f_prev
Line 342:
# Forward part of the algorithm
fwd = []
f_prev = {}
for i, observation_i in enumerate(observations):
f_curr = {}
Line 361 ⟶ 360:
# Backward part of the algorithm
bkw = []
b_prev = {}
for i, observation_i_plus in enumerate(reversed(observations[1:]+(None,))):
b_curr = {}