# Activity 7 - Plotting an Image's predicted Category

Workshop Resources

## Copy and Paste the following code into Google Colab:

# Grab an image from the test dataset. This shows the resolution of the image.

#NOTE: This index will be changed and its corresponding plot would be displayed in the next few steps
img = test_images[0]

print(img.shape)

# Add the image to a batch where it's the only member.
img = (np.expand_dims(img,0))

print(img.shape)

predictions_single = probability_model.predict(img)

print(predictions_single)

plot_value_array(0, predictions_single[0], test_labels)  #plot the graph containing all the class names
_ = plt.xticks(range(10), class_names, rotation=45)