Skip to content

Instantly share code, notes, and snippets.

@minesh1291
Forked from kangeugine/hmm_2.py
Created May 23, 2019 12:07
Show Gist options
  • Save minesh1291/407ec5c8571a18b328d8f04e6758aea6 to your computer and use it in GitHub Desktop.
Save minesh1291/407ec5c8571a18b328d8f04e6758aea6 to your computer and use it in GitHub Desktop.
HMM Problem #1
import math
math.exp(model.score(np.array([[0]])))
# 0.30000000000000004
math.exp(model.score(np.array([[1]])))
# 0.36000000000000004
math.exp(model.score(np.array([[2]])))
# 0.3400000000000001
math.exp(model.score(np.array([[2,2,2]])))
# 0.04590400000000001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment