Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward-Backward log_n_states #16

Open
Lucas0T opened this issue Jun 18, 2017 · 0 comments
Open

Forward-Backward log_n_states #16

Lucas0T opened this issue Jun 18, 2017 · 0 comments

Comments

@Lucas0T
Copy link

Lucas0T commented Jun 18, 2017

Hi,

I'm wondering why in forward-backward and viterbi you divide by the number of states
log_n_states?
As far as I can see it is not part of the standard viterbi or forward-backward algorithm.
Or am I overlooking something?
The lines are:
Forward_Backward.hpp line 64:
cell(i, j).alpha = pm.log_pr_corrected_emission(j, ev[0]) - log_n_states;
Viterbi.hpp line 60:
cell(0, j).alpha = pm.log_pr_corrected_emission(j, ev[0]) - log_n_states;

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant