ianks/hidden-markov-model — pull request #13 by thejinxters (2014-12-11 01:11:40+00:00)
Title: cache transition count and state-based transition counts

Creates a counting cache in the hmm object (this data cannot be scraped when parsing the file). I placed an initializer that runs a loop over all of the transitions, counting them for each `(from,to)` state. It also counts the number of transitions from a `from_state` (basically counting the number of times the state occurs). The loop within transitions has been replaced with a dictionary call.