Created
August 5, 2018 17:55
-
-
Save Kaushal28/8e630b89aec3cd4660f5e8e90b14faed to your computer and use it in GitHub Desktop.
This file contains 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
import numpy as np | |
T = np.load('datasets/T.npy') | |
for i in range(12): | |
for j in range(4): | |
print (T[i,:,j]) | |
''' | |
[0.9 0.1 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. ] for starting state (1,1) and action Down | |
[0.9 0. 0. 0. 0.1 0. 0. 0. 0. 0. 0. 0. ] for starting state (1,1) and action Left | |
[0.1 0.1 0. 0. 0.8 0. 0. 0. 0. 0. 0. 0. ] for starting state (1,1) and action Up | |
[0.1 0.8 0. 0. 0.1 0. 0. 0. 0. 0. 0. 0. ] for starting state (1,1) and action Right and so on | |
[0.1 0.8 0.1 0. 0. 0. 0. 0. 0. 0. 0. 0. ] | |
[0.8 0.2 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. ] | |
[0.1 0.8 0.1 0. 0. 0. 0. 0. 0. 0. 0. 0. ] | |
[0. 0.2 0.8 0. 0. 0. 0. 0. 0. 0. 0. 0. ] | |
[0. 0.1 0.8 0.1 0. 0. 0. 0. 0. 0. 0. 0. ] | |
[0. 0.8 0.1 0. 0. 0. 0.1 0. 0. 0. 0. 0. ] | |
[0. 0.1 0. 0.1 0. 0. 0.8 0. 0. 0. 0. 0. ] | |
[0. 0. 0.1 0.8 0. 0. 0.1 0. 0. 0. 0. 0. ] | |
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] | |
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] | |
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] | |
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] | |
[0.8 0. 0. 0. 0.2 0. 0. 0. 0. 0. 0. 0. ] | |
[0.1 0. 0. 0. 0.8 0. 0. 0. 0.1 0.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] | |
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0.1 0.8 0.1] | |
[0. 0. 0. 0. 0. 0. 0.1 0. 0. 0. 0.1 0.8] | |
[0. 0. 0. 0. 0. 0. 0. 0.8 0. 0. 0.1 0.1] | |
[0. 0. 0. 0. 0. 0. 0. 0.1 0. 0. 0.8 0.1] | |
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.1 0.9] | |
[0. 0. 0. 0. 0. 0. 0. 0.1 0. 0. 0. 0.9] | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment