import numpy as np from tensorflow.keras.datasets import mnist from tensorflow.python.keras.utils.np_utils import to_categorical from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from tensorflow.keras.optimizers import SGD