Last active
November 17, 2018 01:57
-
-
Save manvillej/3e21891680ebc4d374f3c6af0a285630 to your computer and use it in GitHub Desktop.
Defining the transition Matrix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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