We defined and also compiled the model. Now, we will train the model. Training the model can be done using the fit function. We specify our features, x; labels, y; the number of epochs we want to train; and the batch_size, as follows:
model.fit(x=data, y=labels, epochs=100, batch_size=10)