Skip to content

Instantly share code, notes, and snippets.

@davidlandry93
Created January 14, 2019 21:45
Show Gist options
  • Save davidlandry93/6cc29c68a0dc2216fc94cd87001342ae to your computer and use it in GitHub Desktop.
Save davidlandry93/6cc29c68a0dc2216fc94cd87001342ae to your computer and use it in GitHub Desktop.
Simple visualization of MindSumo challenge data
import matplotlib.pyplot as plt
import numpy as np
if __name__ == '__main__':
input_data = 'data/input_training_0000_0099.npy'
label_data = 'data/label_training_0000_0099.npy'
xs = np.load(input_data)
ys = np.load(label_data)
fig, (ax1, ax2) = plt.subplots(1,2)
ax1.imshow(xs[0,5,:,:])
ax1.set_title('Input temperature')
ax2.imshow(ys[0,0,:,:])
ax2.set_title('Label')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment