Skip to content

Instantly share code, notes, and snippets.

@manvillej
Last active November 17, 2018 01:57
Show Gist options
  • Save manvillej/3e21891680ebc4d374f3c6af0a285630 to your computer and use it in GitHub Desktop.
Save manvillej/3e21891680ebc4d374f3c6af0a285630 to your computer and use it in GitHub Desktop.
Defining the transition Matrix
>>> transitionMatrix = np.matrix(
[[0, 0, 0, 0, 1, 0, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 1, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0, 1, 0, 1],
[0, 0, 0, 0, 1, 0, 0, 0, 1, 0],
[1, 0, 0, 1, 0, 0, 0, 0, 0, 1],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 0, 0, 0, 0, 0, 1, 0, 0],
[0, 0, 1, 0, 0, 0, 1, 0, 0, 0],
[0, 1, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 0, 1, 0, 1, 0, 0, 0, 0, 0]], dtype=objects)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment