Menu

Visualizing Predictions

Visualizing Predictions

Display a sample image and compare its predicted class with the actual class.

Code

plt.imshow(X_test[0])
plt.show()

Explanation

Visualizing the predictions helps verify whether the model has correctly classified the image.