Training a Keras model is as simple as calling the model.fit() method. The full signature of this method is as follows:
fit(self, x, y, batch_size=32, epochs=10, verbose=1, callbacks=None,
validation_split=0.0, validation_data=None, shuffle=True,
class_weight=None, sample_weight=None, initial_epoch=0)
We will not go into the details of the arguments of this method; you can read the details at the Keras website, https://keras.io/models/sequential/.
For the example model that we created earlier, train the model with the following code:
model.fit(x_data, y_labels)