Skip to content

Instantly share code, notes, and snippets.

@eileen-code4fun
Last active May 28, 2021 17:54
Show Gist options
  • Save eileen-code4fun/11e66777948381b4bcb7a60ad4fd4df5 to your computer and use it in GitHub Desktop.
Save eileen-code4fun/11e66777948381b4bcb7a60ad4fd4df5 to your computer and use it in GitHub Desktop.
CIFAR10 OL Pred
import tensorflow as tf
from tensorflow.keras import datasets
import matplotlib.pyplot as plt
_, (test_images, test_labels) = datasets.cifar10.load_data()
class_names = ['airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck']
plt.xticks([])
plt.yticks([])
plt.title(class_names[test_labels[0][0]])
plt.imshow(test_images[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment