import tensorflow as tf import numpy as np # advanced math library import matplotlib.pyplot as plt # MATLAB like plotting routines import random # for generating random numbers from keras.datasets import mnist # MNIST dataset is included in Keras% from keras.models import Sequential # Model type to be used from keras.layers import Dense, Dropout, Activation # Types of layers to be used in our model from keras.utils import to_categorical # NumPy related tools from keras import optimizers from sklearn.metrics import confusion_matrix import itertools print(tf.__version__)