Skip to content

Instantly share code, notes, and snippets.

@minesh1291
Forked from kangeugine/hmm_3.py
Created May 23, 2019 12:12
Show Gist options
  • Select an option

  • Save minesh1291/5090cf84ebd8931577fbdc78e704cd7f to your computer and use it in GitHub Desktop.

Select an option

Save minesh1291/5090cf84ebd8931577fbdc78e704cd7f to your computer and use it in GitHub Desktop.
HMM Problem #2
logprob, seq = model.decode(np.array([[1,2,0]]).transpose())
print(math.exp(logprob))
print(seq)
logprob, seq = model.decode(np.array([[2,2,2]]).transpose())
print(math.exp(logprob))
print(seq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment