Keras (https://keras.io) is a high-level deep learning framework that works seamlessly with low-level deep learning backends such as TensorFlow, Theano, and Microsoft Cognitive Toolkit (CNTK). In Keras, a model is like a sequence of layers where each output is fed into the following computational block until the final layer is reached and the cost function can be evaluated and differentiated.
The generic structure of a model is as follows:
from keras.models import Sequential
model = Sequential()
model.add(...)
model.add(...)
...
model.add(...)
The Sequential class defines a generic empty sequential model that already implements all the methods needed to add layers, compile the model according to the underlying framework (that is, transforming the high-level description into a set of commands compatible with the underlying backend), to fit and evaluate the model and...