Plotting images is often a major pain point when dealing with graphics within a Jupyter notebook. Displaying the handwritten images from the training dataset is critical, especially when comparing the actual value of the label that is associated with the handwritten image.
Pain Point #2: Visualizing MNIST images
Getting ready
The only Python libraries that will be imported to visualize the handwritten images are numpy and matplotlib. Both should already be available through the packages in Anaconda. If for some reason they are not available, they can both be pip installed at the Terminal using the following commands:
- pip install matplotlib
- pip install numpy