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

Calculation of emissions #6

Open
aevela opened this issue Jan 19, 2022 · 1 comment
Open

Calculation of emissions #6

aevela opened this issue Jan 19, 2022 · 1 comment

Comments

@aevela
Copy link

aevela commented Jan 19, 2022

Hi, I'm working through code and I noticed an issue in the calculation of the emissions on lines 188-191. Seems like the emissions are calculated based on the last observation (as the variables new_first_dice_probabilities and new_second_dice_probabilities keep getting overwritten in the observations loop), as oppose to be calculated based on all observations. The implication is that is there is not an observation of a specific emission on the last observation then on the next epoch iteration, the fair_dice.probabilities[observation]=0 which creates a NaN situation when calculating alpha.

Seems like 188-191 should be a +=

@jpowie01
Copy link
Owner

Hi @aevela,
Thanks for pointing it out! I can't say that for sure as it's been a while since I worked on this code (and even HMM algorithms), but you might be right :)

As this was implemented only for the purpose of passing university classes, I won't push any changes to my master branch. But, feel free to fork this repository and fix it on your side!

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

2 participants