LxMLS / lxmls-guide

Lisbon Machine Learning Summer School Lab Guide
81 stars 61 forks source link

Day 2 sufficient statistics sanity check #56

Closed beckdaniel closed 9 years ago

beckdaniel commented 9 years ago

In Day 2, page 46, the sanity checks says that both transition/final counts and emission counts should sum to MN. However, isn't this assuming that N is fixed for every sequence, when in practice it can vary? The equations for the transition and emission counts also seem odd to me since N is present in the second summation. Instead of

\sum{m=1}^M \sum{i=1}^N

shouldn't it be something like

\sum{m=1}^M \sum{i=1}^len(M)

?

ramon-astudillo commented 9 years ago

This seems to be the case, could you please fix it?.

beckdaniel commented 9 years ago

Yes, no problem.