+% Forward-backward reestimation of an HMM.
+% The data and initial model from the "ice cream" spreadsheet
+% example can be found in icecream.dyna.
+
% ---------------------------------------------------
% INPUT
% ---------------------------------------------------
% has probability 1 regardless of smoothing. This overrides the previous
% rules.
-p_emission(0,&stop,&eos) := 1.
-p_emission(I+1,&stop,&eos) := p_emission(I,&stop,&eos) for I < num_iterations.
+p_emission(I,&stop,&eos) := 1 for is_iter(I).
% ---------------------------------------------------
% DRAW CONCLUSIONS FROM THE ESTIMATED MODEL
bestpathprob = bestpathprob(start_state).
bestpath = $key(bestpathprob(start_state)).
+p
\ No newline at end of file