Last active
May 28, 2021 17:54
-
-
Save eileen-code4fun/11e66777948381b4bcb7a60ad4fd4df5 to your computer and use it in GitHub Desktop.
CIFAR10 OL Pred
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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