How to Solve NameError: name 'mnist' is not defined -- keras

Solution: Import the 'mnist' module

To Solve the error, add the following line to the top of your code.

from keras.datasets import mnist

 

For more information:
Python keras mnist