Skip to content

Instantly share code, notes, and snippets.

@Crazz-Zaac
Created December 7, 2020 04:19
Show Gist options
  • Save Crazz-Zaac/62252b5ab670ca3bb051004144aa2ce8 to your computer and use it in GitHub Desktop.
Save Crazz-Zaac/62252b5ab670ca3bb051004144aa2ce8 to your computer and use it in GitHub Desktop.
Visualizing the data in the dataset
index = 30 # change index value to visualize other data
plt.imshow(train_set_x_orig[index])
print ("y = " + str(train_set_y[:, index]) + ", it's a '" + classes[np.squeeze(train_set_y[:, index])].decode("utf-8") + "' picture.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment