Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created February 4, 2020 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/917ccf56c626f3c5a559dc39e20144d1 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/917ccf56c626f3c5a559dc39e20144d1 to your computer and use it in GitHub Desktop.
n = 5
plt.figure(figsize= (20,10))
for i in range(n):
ax = plt.subplot(2, n, i+1)
plt.imshow(val_x_px[i+20])
ax.get_xaxis().set_visible(False)
ax.get_yaxis().set_visible(False)
ax = plt.subplot(2, n, i+1+n)
plt.imshow(predictions[i+20])
ax.get_xaxis().set_visible(False)
ax.get_yaxis().set_visible(False)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment