Skip to content

Instantly share code, notes, and snippets.

@Kaushal28
Created August 5, 2018 17:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaushal28/8e630b89aec3cd4660f5e8e90b14faed to your computer and use it in GitHub Desktop.
Save Kaushal28/8e630b89aec3cd4660f5e8e90b14faed to your computer and use it in GitHub Desktop.
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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