Skip to content

Instantly share code, notes, and snippets.

@rfalaize
Last active December 15, 2019 03:35
Show Gist options
  • Select an option

  • Save rfalaize/70ea17deaf9bf060833d756cbe5c32ab to your computer and use it in GitHub Desktop.

Select an option

Save rfalaize/70ea17deaf9bf060833d756cbe5c32ab to your computer and use it in GitHub Desktop.
w = 10
h = 10
fig=plt.figure(figsize=(8, 8))
columns = 4
rows = 4
for i in range(0, columns*rows):
img = X_train[i]
ax = fig.add_subplot(rows, columns, i+1)
ax.title.set_text('label:' + str(y_train[i]))
plt.imshow(img)
plt.tight_layout()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment