Keras is based on the concept of a neural network model. The predominant model is called a Sequence, being a linear stack of layers. There is also a system using the Keras functional API.
Keras models
The Keras Sequential model
To build a Keras Sequential model, you add layers to it in the same order that you want the computations to be undertaken by the network.
After you have built your model, you compile it; this optimizes the computations that are to be undertaken, and is where you allocate the optimizer and the loss function you want your model to use.
The next stage is to fit the model to the data. This is commonly known as training the model, and is where all the computations take place. It is possible to present the...